1 // This test checks that references to the middle of CI from other function
2 // are handled properly
4 // RUN
: llvm-mc
-filetype
=obj
-triple aarch64-unknown-unknown
%s
-o
%t.o
5 // RUN
: %clang
%cflags
--target
=aarch64-unknown-linux
%t.o
-o
%t.exe
-Wl
,-q
6 // RUN
: llvm-bolt
%t.exe
-o
%t.bolt
-lite
=false
7 // RUN
: llvm-objdump
-d
-j
.text %t.bolt | FileCheck %s
10 // CHECK-NEXT
: deadbeef
11 // CHECK-NEXT
: [[#%x,ADDR:]]: deadbeef
12 // CHECK-NEXT
: deadbeef
14 // CHECK-NEXT
: ldr x0
, 0x
[[#ADDR]]
17 .type funcWithIsland, %function
24 .size funcWithIsland, .-funcWithIsland
28 ldr x0
, funcWithIsland
+ 12