llvm-mirror/test/MC/ARM/thumb1-relax-adr-local.s
Tim Northover dadfb33120 ARM: diagnose invalid local fixups on Thumb1
We previously stopped producing Thumb2 relaxations when they weren't supported,
but only diagnosed the case where an actual relocation was produced. We should
also tell people if local symbols aren't going to work rather than silently
overflowing.

llvm-svn: 249164
2015-10-02 18:07:18 +00:00

10 lines
257 B
ArmAsm

@ RUN: not llvm-mc -triple thumbv6m-none-macho -filetype=obj -o /dev/null %s 2>&1 | FileCheck --check-prefix=CHECK-ERROR %s
.global func1
adr r0, Lmisaligned
Lmisaligned:
.word 42
@ CHECK-ERROR: misaligned pc-relative fixup value