diff options
author | Jim Grosbach <grosbach@apple.com> | 2011-09-15 15:55:04 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2011-09-15 15:55:04 +0000 |
commit | 57b21e437a4746e8c3c26531cb233bac953cc5e2 (patch) | |
tree | 438e2cfadf72476e0b73466a05092af7dd903220 /lib | |
parent | a1dd30553da772a1702924bf1651f63fa5df7894 (diff) | |
download | llvm-57b21e437a4746e8c3c26531cb233bac953cc5e2.tar.gz llvm-57b21e437a4746e8c3c26531cb233bac953cc5e2.tar.bz2 llvm-57b21e437a4746e8c3c26531cb233bac953cc5e2.tar.xz |
Thumb2 push/pop mnemonic recognition.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139794 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/ARM/ARMInstrThumb2.td | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMInstrThumb2.td b/lib/Target/ARM/ARMInstrThumb2.td index 1463828cf8..fbc95ee96c 100644 --- a/lib/Target/ARM/ARMInstrThumb2.td +++ b/lib/Target/ARM/ARMInstrThumb2.td @@ -3835,3 +3835,9 @@ def : InstAlias<"pkhtb${p} $Rd, $Rn, $Rm", (t2PKHBT rGPR:$Rd, rGPR:$Rn, rGPR:$Rm, 0, pred:$p)>, Requires<[HasT2ExtractPack, IsThumb2]>; +// PUSH/POP aliases for STM/LDM +def : t2InstAlias<"push${p}.w $regs", (t2STMDB_UPD SP, pred:$p, reglist:$regs)>; +def : t2InstAlias<"push${p} $regs", (t2STMDB_UPD SP, pred:$p, reglist:$regs)>; +def : t2InstAlias<"pop${p}.w $regs", (t2LDMIA_UPD SP, pred:$p, reglist:$regs)>; +def : t2InstAlias<"pop${p} $regs", (t2LDMIA_UPD SP, pred:$p, reglist:$regs)>; + |