diff options
author | Jim Grosbach <grosbach@apple.com> | 2011-09-07 19:57:53 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2011-09-07 19:57:53 +0000 |
commit | 94f914e3fd4b040edd81abb5f455ed2b99e2572a (patch) | |
tree | adaeb3f6bfd73874a251e1471a485764d8c085cf | |
parent | a5d585685493d85d5cb72b831a68ec747ae55a86 (diff) | |
download | external_llvm-94f914e3fd4b040edd81abb5f455ed2b99e2572a.zip external_llvm-94f914e3fd4b040edd81abb5f455ed2b99e2572a.tar.gz external_llvm-94f914e3fd4b040edd81abb5f455ed2b99e2572a.tar.bz2 |
Thumb2 parsing and encoding for LDMDB.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139251 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/ARM/ARMInstrInfo.td | 1 | ||||
-rw-r--r-- | test/MC/ARM/basic-thumb2-instructions.s | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMInstrInfo.td b/lib/Target/ARM/ARMInstrInfo.td index 429fe9e..507c7bb 100644 --- a/lib/Target/ARM/ARMInstrInfo.td +++ b/lib/Target/ARM/ARMInstrInfo.td @@ -4907,6 +4907,7 @@ def : MnemonicAlias<"swi", "svc">; // Load / Store Multiple def : MnemonicAlias<"ldmfd", "ldm">; def : MnemonicAlias<"ldmia", "ldm">; +def : MnemonicAlias<"ldmea", "ldmdb">; def : MnemonicAlias<"stmfd", "stmdb">; def : MnemonicAlias<"stmia", "stm">; def : MnemonicAlias<"stmea", "stm">; diff --git a/test/MC/ARM/basic-thumb2-instructions.s b/test/MC/ARM/basic-thumb2-instructions.s index 5a475b9..aec17e6 100644 --- a/test/MC/ARM/basic-thumb2-instructions.s +++ b/test/MC/ARM/basic-thumb2-instructions.s @@ -501,6 +501,20 @@ _func: @------------------------------------------------------------------------------ +@ LDMDB +@------------------------------------------------------------------------------ + ldmdb r4, {r4, r5, r8, r9} + ldmdb r4, {r5, r6} + ldmdb r5!, {r3, r8} + ldmea r5!, {r3, r8} + +@ CHECK: ldmdb r4, {r4, r5, r8, r9} @ encoding: [0x14,0xe9,0x30,0x03] +@ CHECK: ldmdb r4, {r5, r6} @ encoding: [0x14,0xe9,0x60,0x00] +@ CHECK: ldmdb r5!, {r3, r8} @ encoding: [0x35,0xe9,0x08,0x01] +@ CHECK: ldmdb r5!, {r3, r8} @ encoding: [0x35,0xe9,0x08,0x01] + + +@------------------------------------------------------------------------------ @ IT @------------------------------------------------------------------------------ @ Test encodings of a few full IT blocks, not just the IT instruction |