44 lines · plain
1// REQUIRES: aarch642// RUN: llvm-mc -filetype=obj -triple=aarch64-windows %s -o %t.obj3// RUN: lld-link -entry:main -subsystem:console %t.obj -out:%t.exe -map -verbose 2>&1 | FileCheck -check-prefix=VERBOSE %s4// RUN: llvm-objdump --no-print-imm-hex -d %t.exe | FileCheck --check-prefix=DISASM %s5 6// VERBOSE: Added 2 thunks with margin {{.*}} in 1 passes7 8 .globl main9 .globl func110 .globl func211 .text12main:13 tbz w0, #0, func114 ret15 .section .text$a, "xr"16 .space 0x800017 .section .text$b, "xr"18func1:19 tbz w0, #0, func220 ret21 .space 122 .section .text$c, "xr"23 .space 0x800024 .section .text$d, "xr"25 .align 226func2:27 ret28 29// DISASM: 0000000140001000 <.text>:30// DISASM: 140001000: 36000040 tbz w0, #0, 0x140001008 <.text+0x8>31// DISASM: 140001004: d65f03c0 ret32// DISASM: 140001008: 90000050 adrp x16, 0x14000900033// DISASM: 14000100c: 91005210 add x16, x16, #2034// DISASM: 140001010: d61f0200 br x1635 36// DISASM: 140009014: 36000060 tbz w0, #0, 0x140009020 <.text+0x8020>37// DISASM: 140009018: d65f03c0 ret38 39// DISASM: 140009020: 90000050 adrp x16, 0x14001100040// DISASM: 140009024: 9100b210 add x16, x16, #4441// DISASM: 140009028: d61f0200 br x1642 43// DISASM: 14001102c: d65f03c0 ret44