1 ; RUN: llc < %s -march=xcore > %t1.s
2 ;; This caused a compilation failure since the
3 ;; address arithmetic was folded into the LDWSP instruction,
4 ;; resulting in a negative offset which eliminateFrameIndex was
5 ;; unable to eliminate.
6 define i32 @test(i32 %bar) nounwind readnone {
9 %0 = getelementptr i32, ptr %bar_addr, i32 -1
10 %1 = load i32, ptr %0, align 4