brintos

brintos / llvm-project-archived public Read only

0
0
Text · 783 B · 20ded45 Raw
30 lines · plain
1// REQUIRES: arm2// RUN: llvm-mc --triple=thumbv7m-none-eabi --arm-add-build-attributes -filetype=obj -o %t.o %s3// RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s4 5 .section .text.0, "ax", %progbits6 .thumb_func7 .balign 48low:9  bx lr10  nop11  nop12 13 .section .text.1, "ax", %progbits14 .global _start15 .thumb_func16_start:17// CHECK: {{.*}}.s.tmp.o:(.text.1+0x0): relocation R_ARM_THM_ALU_PREL_11_0 out of range: 4098 is not in [0, 4095]18/// adr.w r0, low - 409119 .inst.w 0xf6af70ff20 .reloc 0, R_ARM_THM_ALU_PREL_11_0, low21// CHECK: {{.*}}.s.tmp.o:(.text.1+0x4): relocation R_ARM_THM_ALU_PREL_11_0 out of range: 4096 is not in [0, 4095]22/// adr.w r0, high + 409123 .inst.w 0xf60f70f724 .reloc 4, R_ARM_THM_ALU_PREL_11_0, high25 .section .text.226 .thumb_func27 .balign 428high:29 bx lr30