mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 19:42:54 +02:00
[ARM] Diagnose ARM MOVT without :lower16: or :upper16: expression
This instruction was missing from the list of opcodes that we check, so we were hitting an llvm_unreachable in ARMMCCodeEmitter.cpp for the ARM MOVT instruction, rather than the diagnostic that is emitted for the other MOVW/MOVT instructions. Differential revision: https://reviews.llvm.org/D30936 llvm-svn: 297739
This commit is contained in:
parent
1dcd7b3239
commit
0d63fd3476
@ -6682,6 +6682,7 @@ bool ARMAsmParser::validateInstruction(MCInst &Inst,
|
||||
break;
|
||||
}
|
||||
case ARM::MOVi16:
|
||||
case ARM::MOVTi16:
|
||||
case ARM::t2MOVi16:
|
||||
case ARM::t2MOVTi16:
|
||||
{
|
||||
|
@ -491,9 +491,12 @@
|
||||
foo2:
|
||||
mov r0, foo2
|
||||
movw r0, foo2
|
||||
movt r0, foo2
|
||||
@ CHECK-ERRORS: error: immediate expression for mov requires :lower16: or :upper16
|
||||
@ CHECK-ERRORS: ^
|
||||
@ CHECK-ERRORS: error: immediate expression for mov requires :lower16: or :upper16
|
||||
@ CHECK-ERRORS: ^
|
||||
@ CHECK-ERRORS: error: immediate expression for mov requires :lower16: or :upper16
|
||||
@ CHECK-ERRORS: ^
|
||||
|
||||
str r0, [r0, #4]!
|
||||
|
Loading…
Reference in New Issue
Block a user