1; RUN: llc < %s -march=xcore -asm-verbose=0 | FileCheck %s
2
3; MachineLICM should hoist the LDWCP out of the loop.
4
5; CHECK-LABEL: f:
6; CHECK-NEXT: ldw [[REG:r[0-9]+]], cp[.LCPI0_0]
7; CHECK-NEXT: .LBB0_1:
8; CHECK-NEXT: stw [[REG]], r0[0]
9; CHECK-NEXT: bu .LBB0_1
10
11define void @f(i32* nocapture %p) noreturn nounwind {
12entry:
13  br label %bb
14
15bb:                                               ; preds = %bb, %entry
16  store volatile i32 525509670, i32* %p, align 4
17  br label %bb
18}
19