xref: /aosp_15_r20/external/llvm/test/MC/ARM/arm-elf-relocation-diagnostics.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker@ RUN: not llvm-mc -triple armv7-eabi -filetype obj -o - %s 2>&1 \
2*9880d681SAndroid Build Coastguard Worker@ RUN:     | FileCheck %s
3*9880d681SAndroid Build Coastguard Worker@ RUN: not llvm-mc -triple thumbv7-eabi -filetype obj -o - %s 2>&1 \
4*9880d681SAndroid Build Coastguard Worker@ RUN:     | FileCheck %s
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Worker	.byte target(sbrel)
7*9880d681SAndroid Build Coastguard Worker@ CHECK: error: relocated expression must be 32-bit
8*9880d681SAndroid Build Coastguard Worker@ CHECK: .byte target(sbrel)
9*9880d681SAndroid Build Coastguard Worker@ CHECK:       ^
10*9880d681SAndroid Build Coastguard Worker
11*9880d681SAndroid Build Coastguard Worker	.hword target(sbrel)
12*9880d681SAndroid Build Coastguard Worker@ CHECK: error: relocated expression must be 32-bit
13*9880d681SAndroid Build Coastguard Worker@ CHECK: .hword target(sbrel)
14*9880d681SAndroid Build Coastguard Worker@ CHECK:        ^
15*9880d681SAndroid Build Coastguard Worker
16*9880d681SAndroid Build Coastguard Worker	.short target(sbrel)
17*9880d681SAndroid Build Coastguard Worker@ CHECK: error: relocated expression must be 32-bit
18*9880d681SAndroid Build Coastguard Worker@ CHECK: .short target(sbrel)
19*9880d681SAndroid Build Coastguard Worker@ CHECK:        ^
20*9880d681SAndroid Build Coastguard Worker
21*9880d681SAndroid Build Coastguard Worker	.quad target(sbrel)
22*9880d681SAndroid Build Coastguard Worker@ CHECK: error: relocated expression must be 32-bit
23*9880d681SAndroid Build Coastguard Worker@ CHECK: .quad target(sbrel)
24*9880d681SAndroid Build Coastguard Worker@ CHECK:        ^
25*9880d681SAndroid Build Coastguard Worker
26*9880d681SAndroid Build Coastguard Worker
27