40 lines · plain
1// This test checks that references to the middle of CI from other function2// are handled properly3 4// RUN: llvm-mc -filetype=obj -triple aarch64-unknown-unknown %s -o %t.o5// RUN: %clang %cflags --target=aarch64-unknown-linux %t.o -o %t.exe -Wl,-q6// RUN: llvm-bolt %t.exe -o %t.bolt -lite=false7// RUN: llvm-objdump -d -j .text %t.bolt | FileCheck %s8 9// CHECK: deadbeef10// CHECK-NEXT: deadbeef11// CHECK-NEXT: [[#%x,ADDR:]]: deadbeef12// CHECK-NEXT: deadbeef13// CHECK: <func>:14// CHECK-NEXT: ldr x0, 0x[[#ADDR]]15// CHECK-NEXT: ret16 17.type funcWithIsland, %function18funcWithIsland:19 ret20 .word 0xdeadbeef21 .word 0xdeadbeef22 .word 0xdeadbeef23 .word 0xdeadbeef24.size funcWithIsland, .-funcWithIsland25 26.type func, %function27func:28 ldr x0, funcWithIsland + 1229 ret30.size func, .-func31 32.global main33.type main, %function34main:35 bl funcWithIsland36 bl func37 mov w8, #9338 svc #039.size main, .-main40