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