19 lines · plain
1; RUN: llc < %s -mtriple=xcore -asm-verbose=0 | FileCheck %s2 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_110 11define void @f(ptr nocapture %p) noreturn nounwind {12entry:13 br label %bb14 15bb: ; preds = %bb, %entry16 store volatile i32 525509670, ptr %p, align 417 br label %bb18}19