diff options
author | Kevin Enderby <enderby@apple.com> | 2010-12-09 19:19:43 +0000 |
---|---|---|
committer | Kevin Enderby <enderby@apple.com> | 2010-12-09 19:19:43 +0000 |
commit | 193c3acbe5cdb60767d114016970e898c7502d7a (patch) | |
tree | d7c68e193543b8d704db96fc56e2a13482fd7d40 /test | |
parent | 027d6e8d1ca04e4096fb3a27579b861d861466c5 (diff) | |
download | llvm-193c3acbe5cdb60767d114016970e898c7502d7a.tar.gz llvm-193c3acbe5cdb60767d114016970e898c7502d7a.tar.bz2 llvm-193c3acbe5cdb60767d114016970e898c7502d7a.tar.xz |
Add support for parsing ARM arithmetic instructions that update or don't update
the condition codes. Where the ones that do have an 's' suffix and the ones
that don't don't have the suffix. The trick is if MatchInstructionImpl() fails
we try again after adding a CCOut operand with the correct value and removing
the 's' if present. Four simple test cases added for now, lots more to come.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121401 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/MC/ARM/arm_instructions.s | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/MC/ARM/arm_instructions.s b/test/MC/ARM/arm_instructions.s index a1041fb724..3aafe05b5c 100644 --- a/test/MC/ARM/arm_instructions.s +++ b/test/MC/ARM/arm_instructions.s @@ -55,3 +55,12 @@ stmib r2!, {r1,r3-r6,sp} stmda r2!, {r1,r3-r6,sp} stmdb r2!, {r1,r3-r6,sp} + +@ CHECK: and r1, r2, r3 @ encoding: [0x03,0x10,0x02,0xe0] + and r1, r2, r3 +@ CHECK: ands r1, r2, r3 @ encoding: [0x03,0x10,0x12,0xe0] + ands r1, r2, r3 +@ CHECK: eor r1, r2, r3 @ encoding: [0x03,0x10,0x22,0xe0] + eor r1, r2, r3 +@ CHECK: eors r1, r2, r3 @ encoding: [0x03,0x10,0x32,0xe0] + eors r1, r2, r3 |