1 // RUN
: llvm-mc
-triple
=armv7
-filetype
=obj
%s | llvm-objdump
--triple
=armv7
-d
- | FileCheck
%s
2 // RUN
: not llvm-mc
-triple
=armv7
-filetype
=obj
--defsym
=ERR
=1 < %s
-o
/dev
/null
2>&1 | FileCheck
--check-prefix
=ERR
%s
5 // Check that the assembler accepts the result of symbolic expressions as the
6 // immediate operand in load
and stores.
12 ldr
r0, [r1, #(1b - 0b)]
13 // CHECK-NEXT
: ldr
r0, [r1, #1024]
14 ldr
r0, [r1, #(0b - 1b)]
15 // CHECK-NEXT
: ldr
r0, [r1, #-1024]
16 ldrb
r0, [r1, #(1b-0b)]
17 // CHECK-NEXT
: ldrb
r0, [r1, #1024]
18 str
r0, [r1, #(1b-0b)]
19 // CHECK-NEXT
: str
r0, [r1, #1024]
20 strb
r0, [r1, #(1b-0b)]
21 // CHECK-NEXT
: strb
r0, [r1, #1024]
24 // ERR
:[[#@LINE-1]]:5: error: unsupported relocation on symbol