SimplifyCFG: don't remove unreachable default switch destinations
[oota-llvm.git] / test / MC / ARM / arm-elf-relocation-diagnostics.s
1 @ RUN: not llvm-mc -triple armv7-eabi -filetype obj -o - %s 2>&1 \
2 @ RUN:     | FileCheck %s
3 @ RUN: not llvm-mc -triple thumbv7-eabi -filetype obj -o - %s 2>&1 \
4 @ RUN:     | FileCheck %s
5
6         .byte target(sbrel)
7 @ CHECK: error: relocated expression must be 32-bit
8 @ CHECK: .byte target(sbrel)
9 @ CHECK:       ^
10
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:        ^
16 @
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:        ^
21 @
22 @       .quad target(sbrel)
23 @ @ CHECK-SBREL-SHORT: error: relocated expression must be 32-bit
24 @ @ CHECK-SBREL-SHORT: .quad target(sbrel)
25 @ @ CHECK-SBREL-SHORT:        ^
26
27