brintos

brintos / llvm-project-archived public Read only

0
0
Text · 372 B · e3e24d8 Raw
15 lines · plain
1; RUN: llc < %s -mtriple=arm64-apple-ios7.0 | FileCheck %s2; rdar://96186443 4@G = external global i325 6define i32 @test(i32 %off) nounwind {7; CHECK-LABEL: test:8; CHECK: adrp x[[REG:[0-9]+]], _G@GOTPAGE9; CHECK: ldr  x[[REG2:[0-9]+]], [x[[REG]], _G@GOTPAGEOFF]10; CHECK: add w0, w[[REG2]], w011  %tmp = ptrtoint ptr @G to i3212  %tmp1 = add i32 %tmp, %off13  ret i32 %tmp114}15