1 @ RUN
: llvm-mc
%s
-triple
=armv7-linux-gnueabi | FileCheck
-check-prefix
=ASM
%s
2 @ RUN
: llvm-mc
%s
-triple
=armv7-linux-gnueabi
-filetype
=obj
-o
- | \
3 @ RUN
: elf-dump
--dump-section-data | FileCheck
-check-prefix
=OBJ
%s
11 movw
r0, :lower16
:GOT-
(.LPC0_2+8)
12 movt
r0, :upper16
:GOT-
(.LPC0_2+16)
14 @ ASM
: movw
r0, :lower16
:(GOT-
(.LPC0_2+8))
15 @ ASM-NEXT
: movt
r0, :upper16
:(GOT-
(.LPC0_2+16))
17 @@ make sure that the text section fixups are sane too
19 @ OBJ-NEXT
: 'sh_type', 0x00000001
20 @ OBJ-NEXT
: 'sh_flags', 0x00000006
21 @ OBJ-NEXT
: 'sh_addr', 0x00000000
22 @ OBJ-NEXT
: 'sh_offset', 0x00000034
23 @ OBJ-NEXT
: 'sh_size', 0x00000008
24 @ OBJ-NEXT
: 'sh_link', 0x00000000
25 @ OBJ-NEXT
: 'sh_info', 0x00000000
26 @ OBJ-NEXT
: 'sh_addralign', 0x00000004
27 @ OBJ-NEXT
: 'sh_entsize', 0x00000000
28 @ OBJ-NEXT
: '_section_data', 'f00f0fe3 ff0f4fe3'
30 @ OBJ
: Relocation
0x00000000
31 @ OBJ-NEXT
: 'r_offset', 0x00000000
33 @ OBJ-NEXT
: 'r_type', 0x0000002d
35 @ OBJ
: Relocation
0x00000001
36 @ OBJ-NEXT
: 'r_offset', 0x00000004
38 @ OBJ-NEXT
: 'r_type', 0x0000002e