[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / ARM / t2-modified-immediate-fixup-error2.s
blobffed9399f3090ac505fffeb8710b99f90913b663
1 @ PR28647
2 @ RUN: not llvm-mc -triple=thumbv7a-linux-gnueabi -filetype=obj < %s 2>&1 | FileCheck %s
3 .text
4 .syntax unified
5 .balign 2
7 @ mov with :upper16: or :lower16: should not match mov with modified immediate
8 mov r0, :upper16: sym0
9 @ CHECK: error: invalid instruction, any one of the following would fix this:
10 @ CHECK: note: instruction requires: arm-mode
11 @ CHECK: note: invalid operand for instruction
12 @ CHECK: note: operand must be an immediate in the range [256,65535]
13 mov r0, :lower16: sym0
14 @ CHECK: error: invalid instruction, any one of the following would fix this:
15 @ CHECK: note: instruction requires: arm-mode
16 @ CHECK: note: invalid operand for instruction
17 @ CHECK: note: operand must be an immediate in the range [256,65535]
18 .equ sym0, 0x01abcdef