21 lines · plain
1@ RUN: not llvm-mc -triple armv7a-linux-gnueabihf %s -filetype=obj -o %t.o 2>&1 | FileCheck %s2 3@ The relaxations should be applied using the subtarget from the fragment4@ containing the fixup and not the per module subtarget.5 6 .syntax unified7 .thumb8 @ Place a literal pool out of range of the 16-bit ldr but within9 @ range of the 32-bit ldr.w10 .text11 @ Relaxation to ldr.w as target triple supports Thumb212 ldr r0,=0x1234567813 .arch armv4t14 @ No relaxation as v4t does not support Thumb15 @ expect out of range error message16 ldr r0,=0x8765432117 .space 102418 19@ CHECK: error: out of range pc-relative fixup value20@ CHECK-NEXT: ldr r0,=0x8765432121