llvm.org GIT mirror llvm / 8f5c321
[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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297739 91177308-0d34-0410-b5e6-96231b3b80d8 Oliver Stannard 3 years ago
2 changed file(s) with 4 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
66816681 break;
66826682 }
66836683 case ARM::MOVi16:
6684 case ARM::MOVTi16:
66846685 case ARM::t2MOVi16:
66856686 case ARM::t2MOVTi16:
66866687 {
490490 foo2:
491491 mov r0, foo2
492492 movw r0, foo2
493 movt r0, foo2
493494 @ CHECK-ERRORS: error: immediate expression for mov requires :lower16: or :upper16
494495 @ CHECK-ERRORS: ^
496 @ CHECK-ERRORS: error: immediate expression for mov requires :lower16: or :upper16
497 @ CHECK-ERRORS: ^
495498 @ CHECK-ERRORS: error: immediate expression for mov requires :lower16: or :upper16
496499 @ CHECK-ERRORS: ^
497500