[PATCH] D91766: [ARM] support tmrc instruction.

Jian Cai via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 18 22:22:02 PST 2020


jcai19 created this revision.
Herald added subscribers: llvm-commits, danielkiss, hiraditya, kristof.beyls.
Herald added a project: LLVM.
jcai19 requested review of this revision.

- TEST ONLY --


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D91766

Files:
  llvm/lib/Target/ARM/ARMInstrInfo.td


Index: llvm/lib/Target/ARM/ARMInstrInfo.td
===================================================================
--- llvm/lib/Target/ARM/ARMInstrInfo.td
+++ llvm/lib/Target/ARM/ARMInstrInfo.td
@@ -5569,6 +5569,9 @@
 def : ARMInstAlias<"mrc${p} $cop, $opc1, $Rt, $CRn, $CRm",
                    (MRC GPRwithAPSR:$Rt, p_imm:$cop, imm0_7:$opc1, c_imm:$CRn,
                         c_imm:$CRm, 0, pred:$p)>;
+def : ARMInstAlias<"tmrc${p} $Rt, $CRn",
+                   (MRC GPRwithAPSR:$Rt, 1, 0, c_imm:$CRn,
+                        0, 0, pred:$p)>;
 
 def : ARMPat<(int_arm_mrc timm:$cop, timm:$opc1, timm:$CRn, timm:$CRm, timm:$opc2),
              (MRC p_imm:$cop, imm0_7:$opc1, c_imm:$CRn, c_imm:$CRm, imm0_7:$opc2)>;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91766.306314.patch
Type: text/x-patch
Size: 720 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201119/d5e9c440/attachment.bin>


More information about the llvm-commits mailing list