ARM: do not relax Thumb1 -> Thumb2 if only Thumb1 is available.
[oota-llvm.git] / test / MC / ARM / thumb1-relax-ldrlit.s
1 @ RUN: not llvm-mc -triple thumbv6m-none-macho -filetype=obj -o /dev/null %s 2>&1 | FileCheck --check-prefix=CHECK-ERROR %s
2 @ RUN: not llvm-mc -triple thumbv7m-none-macho -filetype=obj -o /dev/null %s 2>&1 | FileCheck --check-prefix=CHECK-ERROR %s
3 @ RUN: not llvm-mc -triple thumbv7m-none-eabi -filetype=obj -o /dev/null %s 2>&1 | FileCheck --check-prefix=CHECK-ERROR %s
4
5         .global func1
6 _func1:
7         ldr r0, _func2
8 @ CHECK-ERROR: unsupported relocation on symbol
9