1@ RUN: not llvm-mc -triple armv7a-linux-gnueabihf %s -filetype=obj -o %t.o 2>&1 | FileCheck %s 2 3@ The relaxations should be applied using the subtarget from the fragment 4@ containing the fixup and not the per module subtarget. 5 6 .syntax unified 7 .thumb 8 @ Place a literal pool out of range of the 16-bit ldr but within 9 @ range of the 32-bit ldr.w 10 .text 11 @ Relaxation to ldr.w as target triple supports Thumb2 12 ldr r0,=0x12345678 13 .arch armv4t 14 @ No relaxation as v4t does not support Thumb 15 @ expect out of range error message 16 ldr r0,=0x87654321 17 .space 1024 18 19@ CHECK: error: out of range pc-relative fixup value 20@ CHECK-NEXT: ldr r0,=0x87654321 21