aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/ARM/ARMInstrThumb2.td
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2013-02-23 00:52:09 +0000
committerJim Grosbach <grosbach@apple.com>2013-02-23 00:52:09 +0000
commit1e8ed2537b3e4b2175cd9e62626f07606c62cfa0 (patch)
treed5e144e5936bfe715ced92bcb81f634ac3313ca4 /lib/Target/ARM/ARMInstrThumb2.td
parent3603e9aa5e46923c44db1e6254f0393a2b0644e4 (diff)
downloadexternal_llvm-1e8ed2537b3e4b2175cd9e62626f07606c62cfa0.zip
external_llvm-1e8ed2537b3e4b2175cd9e62626f07606c62cfa0.tar.gz
external_llvm-1e8ed2537b3e4b2175cd9e62626f07606c62cfa0.tar.bz2
ARM: Convenience aliases for 'srs*' instructions.
Handle an implied 'sp' operand. rdar://11466783 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175940 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMInstrThumb2.td')
-rw-r--r--lib/Target/ARM/ARMInstrThumb2.td7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMInstrThumb2.td b/lib/Target/ARM/ARMInstrThumb2.td
index cf8b302..c9d709e 100644
--- a/lib/Target/ARM/ARMInstrThumb2.td
+++ b/lib/Target/ARM/ARMInstrThumb2.td
@@ -3481,6 +3481,13 @@ def t2SRSIA_UPD : T2SRS<0b11, 1, (outs), (ins imm0_31:$mode), NoItinerary,
def t2SRSIA : T2SRS<0b11, 0, (outs), (ins imm0_31:$mode), NoItinerary,
"srsia","\tsp, $mode", []>;
+
+def : t2InstAlias<"srsdb${p} $mode", (t2SRSDB imm0_31:$mode, pred:$p)>;
+def : t2InstAlias<"srsdb${p} $mode!", (t2SRSDB_UPD imm0_31:$mode, pred:$p)>;
+
+def : t2InstAlias<"srsia${p} $mode", (t2SRSIA imm0_31:$mode, pred:$p)>;
+def : t2InstAlias<"srsia${p} $mode!", (t2SRSIA_UPD imm0_31:$mode, pred:$p)>;
+
// Return From Exception is a system instruction.
class T2RFE<bits<12> op31_20, dag oops, dag iops, InstrItinClass itin,
string opc, string asm, list<dag> pattern>