[Frontend] Remove unused includes (NFC) (#116927)
[llvm-project.git] / llvm / test / MC / ARM / pcrel-ldrd-diff-section.s
blob0b745a97687d59ce8b05ceda8bdda3ad58fbf270
1 @ RUN: not llvm-mc -filetype=obj --defsym=ERR=1 -o /dev/null %s 2>&1 -triple=thumbv7 | FileCheck %s --check-prefix=ERR
2 @ RUN: not llvm-mc -filetype=obj --defsym=ERR=1 -o /dev/null %s 2>&1 -triple=thumbebv7 | FileCheck %s --check-prefix=ERR
3 @ RUN: llvm-mc -filetype=obj -triple=armv7 %s -o %t
4 @ RUN: llvm-readelf -r %t | FileCheck %s --check-prefix=ARM
5 @ RUN: llvm-objdump -d --triple=armv7 %t | FileCheck %s --check-prefix=ARM_ADDEND
6 @ RUN: llvm-mc -filetype=obj -triple=armebv7 %s -o %t
7 @ RUN: llvm-readelf -r %t | FileCheck %s --check-prefix=ARM
8 @ RUN: llvm-objdump -d --triple=armebv7 %t | FileCheck %s --check-prefix=ARM_ADDEND
10 .section .text.bar, "ax"
11 .balign 4
12 .global bar
13 .type bar, %function
15 bar:
16 ldrd r0, r1, foo1 @ arm_pcrel_10_unscaled
17 ldrd r0, r1, foo2-8 @ arm_pcrel_10_unscaled
18 .ifdef ERR
19 @ ERR:[[#@LINE-3]]:5: error: unsupported relocation type
20 @ ERR:[[#@LINE-3]]:5: error: unsupported relocation type
21 .endif
22 bx lr
24 .section .data.foo, "a", %progbits
25 .balign 4
26 .global foo1
27 .global foo2
28 foo1:
29 .word 0x11223344, 0x55667788
30 foo2:
31 .word 0x99aabbcc, 0xddeeff00
33 @ ARM: R_ARM_LDRS_PC_G0
35 @ ARM_ADDEND: ldrd r0, r1, [pc, #-8]
36 @ ARM_ADDEND: ldrd r0, r1, [pc, #-16]