aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/ARM/arm_instructions.s
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2011-02-14 13:09:44 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2011-02-14 13:09:44 +0000
commita2b6e4151b75248f9dbf8067186cba673520f8f4 (patch)
treec4aaaa817865ec6d4759a038002da3ec84e11ec2 /test/MC/ARM/arm_instructions.s
parent283c8caccd093f8e1d4f0bdd01ac240b4edbd20a (diff)
downloadexternal_llvm-a2b6e4151b75248f9dbf8067186cba673520f8f4.zip
external_llvm-a2b6e4151b75248f9dbf8067186cba673520f8f4.tar.gz
external_llvm-a2b6e4151b75248f9dbf8067186cba673520f8f4.tar.bz2
Fix encoding and add parsing support for the arm/thumb CPS instruction:
- Add custom operand matching for imod and iflags. - Rename SplitMnemonicAndCC to SplitMnemonic since it splits more than CC from mnemonic. - While adding ".w" as an operand, don't change "Head" to avoid passing the wrong mnemonic to ParseOperand. - Add asm parser tests. - Add disassembler tests just to make sure it can catch all cps versions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125489 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/ARM/arm_instructions.s')
-rw-r--r--test/MC/ARM/arm_instructions.s9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/MC/ARM/arm_instructions.s b/test/MC/ARM/arm_instructions.s
index f5bf236..291a761 100644
--- a/test/MC/ARM/arm_instructions.s
+++ b/test/MC/ARM/arm_instructions.s
@@ -237,3 +237,12 @@
@ CHECK: dsb oshst @ encoding: [0x42,0xf0,0x7f,0xf5]
dsb oshst
+@ CHECK: cpsie aif @ encoding: [0xc0,0x01,0x08,0xf1]
+ cpsie aif
+
+@ CHECK: cps #15 @ encoding: [0x0f,0x00,0x02,0xf1]
+ cps #15
+
+@ CHECK: cpsie if, #10 @ encoding: [0xca,0x00,0x0a,0xf1]
+ cpsie if, #10
+