[Frontend] Remove unused includes (NFC) (#116927)
[llvm-project.git] / llvm / test / MC / ARM / pcrel-adr32-relocs.s
blob5fd30f24630f90358eea2c975fd845ac648c249f
1 @ RUN: llvm-mc -filetype=obj -triple=armv7 %s -o %t
2 @ RUN: llvm-readelf -r %t | FileCheck %s --check-prefix=RELOC
3 @ RUN: llvm-objdump -d --triple=armv7 %t | FileCheck %s --check-prefix=ADDEND
5 @ RUN: llvm-mc -filetype=obj --triple=armebv7-unknown-unknown %s -o %t
6 @ RUN: llvm-readelf -r %t | FileCheck %s --check-prefix=RELOC
7 @ RUN: llvm-objdump -d --triple=armebv7-unknown-unknown %t | FileCheck %s --check-prefix=ADDEND
9 .section .text._func1, "ax"
11 .balign 4
12 .global _func1
13 .type _func1, %function
14 _func1:
15 adr r0, _func2
16 @ RELOC: R_ARM_ALU_PC_G0
17 .thumb
18 adr r0, _func2
19 @ RELOC: R_ARM_THM_ALU_PREL_11_0
20 bx lr
22 @ ADDEND: sub r0, pc, #8
23 @ ADDEND-NEXT: adr.w r0, #-4