brintos

brintos / llvm-project-archived public Read only

0
0
Text · 748 B · 8d13e6d Raw
31 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_PC12 out of range: 4098 is not in [0, 4095]18/// ldr.w r0, low - 409119 .inst.w 0xf85f0fff20 .reloc 0, R_ARM_THM_PC12, low21// CHECK: {{.*}}.s.tmp.o:(.text.1+0x4): relocation R_ARM_THM_PC12 out of range: 4096 is not in [0, 4095]22/// ldr.w r0, high + 409123 .inst.w 0xf8df0ff724 .reloc 4, R_ARM_THM_PC12, high25 26 .section .text.227 .thumb_func28 .balign 429high:30 bx lr31