2 // RUN
: llvm-mc
--triple
=armv7a-none-eabi
--arm-add-build-attributes
-filetype
=obj
-o
%t.o
%s
3 // RUN
: not ld.lld
-n
%t.o
-o
%t 2>&1 | FileCheck
%s
4 .section .text.0, "ax", %progbits
15 .section .text.1, "ax", %progbits
19 // CHECK
: {{.*}}.s.tmp.o:(.text.1+0x0): relocation R_ARM_LDR_PC_G0 out of range: 4096 is not in [0, 4095]
20 /// ldr
r0, low
- 4076
22 .reloc 0, R_ARM_LDR_PC_G0, low
23 // CHECK
: {{.*}}.s.tmp.o:(.text.1+0x4): relocation R_ARM_LDR_PC_G0 out of range: 4096 is not in [0, 4095]
24 /// ldr
r0, high
+ 4100
26 .reloc 4, R_ARM_LDR_PC_G0, high