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 9 10 .section .text.bar, "ax" 11 .balign 4 12 .global bar 13 .type bar, %function 14 15bar: 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 23 24 .section .data.foo, "a", %progbits 25 .balign 4 26 .global foo1 27 .global foo2 28foo1: 29 .word 0x11223344, 0x55667788 30foo2: 31 .word 0x99aabbcc, 0xddeeff00 32 33@ ARM: R_ARM_LDRS_PC_G0 34 35@ ARM_ADDEND: ldrd r0, r1, [pc, #-8] 36@ ARM_ADDEND: ldrd r0, r1, [pc, #-16] 37