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"
16 ldrd
r0, r1, foo1 @ arm_pcrel_10_unscaled
17 ldrd
r0, r1, foo2-
8 @ arm_pcrel_10_unscaled
19 @ ERR
:[[#@LINE-3]]:5: error: unsupported relocation type
20 @ ERR
:[[#@LINE-3]]:5: error: unsupported relocation type
24 .section .data.foo, "a", %progbits
29 .word 0x11223344, 0x55667788
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]