mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
15 lines
363 B
LLVM
15 lines
363 B
LLVM
|
; RUN: llc -march=arm64 < %s
|
||
|
|
||
|
|
||
|
; Make sure large offsets aren't mistaken for valid immediate offsets.
|
||
|
; <rdar://problem/13190511>
|
||
|
define void @f(i32* nocapture %p) {
|
||
|
entry:
|
||
|
%a = ptrtoint i32* %p to i64
|
||
|
%ao = add i64 %a, 25769803792
|
||
|
%b = inttoptr i64 %ao to i32*
|
||
|
store volatile i32 0, i32* %b, align 4
|
||
|
store volatile i32 0, i32* %b, align 4
|
||
|
ret void
|
||
|
}
|