mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +00:00
fce288fc91
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81293 91177308-0d34-0410-b5e6-96231b3b80d8
13 lines
424 B
LLVM
13 lines
424 B
LLVM
; RUN: llc < %s -march=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* %bar_addr, i32 -1
|
|
%1 = load i32* %0, align 4
|
|
ret i32 %1
|
|
}
|