blob: 6875d03b303e051094a01d1f14b9b3d9a1cbc778 [file] [log] [blame]
Saleem Abdulrasoolfe781972015-01-11 04:39:18 +00001@ 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
Oliver Stannard9be59af2015-11-17 10:00:43 +000011 .hword target(sbrel)
12@ CHECK: error: relocated expression must be 32-bit
13@ CHECK: .hword target(sbrel)
14@ CHECK: ^
15
16 .short target(sbrel)
17@ CHECK: error: relocated expression must be 32-bit
18@ CHECK: .short target(sbrel)
19@ CHECK: ^
20
21 .quad target(sbrel)
22@ CHECK: error: relocated expression must be 32-bit
23@ CHECK: .quad target(sbrel)
24@ CHECK: ^
Saleem Abdulrasoolfe781972015-01-11 04:39:18 +000025
26