diff options
author | Artyom Skrobov <Artyom.Skrobov@arm.com> | 2014-05-29 11:26:15 +0000 |
---|---|---|
committer | Artyom Skrobov <Artyom.Skrobov@arm.com> | 2014-05-29 11:26:15 +0000 |
commit | 684122e84ed10cde3e462ea073345f2d1b165e07 (patch) | |
tree | 83a6b81af8f4afd6934354561c51ee49e6caf6f4 /test | |
parent | ce538c783448d6b8d848212286b5a4e500bc9956 (diff) | |
download | llvm-684122e84ed10cde3e462ea073345f2d1b165e07.tar.gz llvm-684122e84ed10cde3e462ea073345f2d1b165e07.tar.bz2 llvm-684122e84ed10cde3e462ea073345f2d1b165e07.tar.xz |
Add missing check when MatchInstructionImpl() reports failure
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209802 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/MC/AArch64/basic-a64-diagnostics.s | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/MC/AArch64/basic-a64-diagnostics.s b/test/MC/AArch64/basic-a64-diagnostics.s index a4a3b1379c..118df368fd 100644 --- a/test/MC/AArch64/basic-a64-diagnostics.s +++ b/test/MC/AArch64/basic-a64-diagnostics.s @@ -395,6 +395,7 @@ cmn w11, w12, lsr #-1 cmn w11, w12, lsr #32 cmn w19, wzr, asr #-1 + cmn wsp, w0 cmn wzr, wzr, asr #32 cmn x9, x10, lsl #-1 cmn x9, x10, lsl #64 @@ -417,6 +418,9 @@ // CHECK-ERROR-NEXT: error: expected integer shift amount // CHECK-ERROR-NEXT: cmn w19, wzr, asr #-1 // CHECK-ERROR-NEXT: ^ +// CHECK-ERROR-NEXT: error: too few operands for instruction +// CHECK-ERROR-NEXT: cmn wsp, w0 +// CHECK-ERROR-NEXT: ^ // CHECK-ERROR-NEXT: error: expected 'lsl', 'lsr' or 'asr' with optional integer in range [0, 31] // CHECK-ERROR-NEXT: cmn wzr, wzr, asr #32 // CHECK-ERROR-NEXT: ^ |