1 @ RUN: not llvm-mc -triple armv7-eabi -filetype obj -o - %s 2>&1 \
3 @ RUN: not llvm-mc -triple thumbv7-eabi -filetype obj -o - %s 2>&1 \
7 @ CHECK: error: relocated expression must be 32-bit
8 @ CHECK: .byte target(sbrel)
11 @ TODO: enable these negative test cases
12 @ .hword target(sbrel)
13 @ @ CHECK-SBREL-HWORD: error: relocated expression must be 32-bit
14 @ @ CHECK-SBREL-HWORD: .hword target(sbrel)
15 @ @ CHECK-SBREL-HWORD: ^
17 @ .short target(sbrel)
18 @ @ CHECK-SBREL-SHORT: error: relocated expression must be 32-bit
19 @ @ CHECK-SBREL-SHORT: .short target(sbrel)
20 @ @ CHECK-SBREL-SHORT: ^
23 @ @ CHECK-SBREL-SHORT: error: relocated expression must be 32-bit
24 @ @ CHECK-SBREL-SHORT: .quad target(sbrel)
25 @ @ CHECK-SBREL-SHORT: ^