1adde6670SPeter Smith@ PR28647 2adde6670SPeter Smith@ RUN: not llvm-mc -triple=thumbv7a-linux-gnueabi -filetype=obj < %s 2>&1 | FileCheck %s 3adde6670SPeter Smith .text 4adde6670SPeter Smith .syntax unified 5adde6670SPeter Smith .balign 2 6adde6670SPeter Smith 7adde6670SPeter Smith@ mov with :upper16: or :lower16: should not match mov with modified immediate 8adde6670SPeter Smith mov r0, :upper16: sym0 9e093bad4SOliver Stannard@ CHECK: error: invalid instruction, any one of the following would fix this: 10e093bad4SOliver Stannard@ CHECK: note: instruction requires: arm-mode 11e093bad4SOliver Stannard@ CHECK: note: invalid operand for instruction 12*5a7aae3aSOliver Stannard@ CHECK: note: operand must be an immediate in the range [256,65535] 13adde6670SPeter Smith mov r0, :lower16: sym0 14e093bad4SOliver Stannard@ CHECK: error: invalid instruction, any one of the following would fix this: 15e093bad4SOliver Stannard@ CHECK: note: instruction requires: arm-mode 16e093bad4SOliver Stannard@ CHECK: note: invalid operand for instruction 17*5a7aae3aSOliver Stannard@ CHECK: note: operand must be an immediate in the range [256,65535] 18adde6670SPeter Smith .equ sym0, 0x01abcdef 19