2011-10-20 21:10:27 +00:00
|
|
|
; RUN: llc < %s -march=xcore -asm-verbose=0 | FileCheck %s
|
|
|
|
|
|
|
|
; MachineLICM should hoist the LDWCP out of the loop.
|
|
|
|
|
2013-12-22 00:04:03 +00:00
|
|
|
; CHECK-LABEL: f:
|
2011-10-20 21:10:27 +00:00
|
|
|
; CHECK-NEXT: ldw [[REG:r[0-9]+]], cp[.LCPI0_0]
|
|
|
|
; CHECK-NEXT: .LBB0_1:
|
|
|
|
; CHECK-NEXT: stw [[REG]], r0[0]
|
|
|
|
; CHECK-NEXT: bu .LBB0_1
|
|
|
|
|
|
|
|
define void @f(i32* nocapture %p) noreturn nounwind {
|
|
|
|
entry:
|
|
|
|
br label %bb
|
|
|
|
|
|
|
|
bb: ; preds = %bb, %entry
|
2012-04-14 13:54:10 +00:00
|
|
|
store volatile i32 525509670, i32* %p, align 4
|
2011-10-20 21:10:27 +00:00
|
|
|
br label %bb
|
|
|
|
}
|