[PATCH] D75821: [PowerPC] Remove the repeated definition for some InstAlias for mtspr/mfspr

Zhang Kang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 7 23:29:42 PST 2020


ZhangKang created this revision.
ZhangKang added reviewers: PowerPC, kbarton, hiraditya, nemanjai, jsji, steven.zhang.
ZhangKang added a project: LLVM.
Herald added subscribers: shchenz, wuzish.
ZhangKang edited the summary of this revision.

Below InstAlias have been redefined, this patch is to remove the repeated definition.
mtdec/mfdec   mtsdr1/mfsdr1     mtsrr0/mfsrr0    mtsrr1/mfsrr1

  4499 def : InstAlias<"mtdec $Rx", (MTSPR 22, gprc:$Rx)>;
  4500 def : InstAlias<"mfdec $Rx", (MFSPR gprc:$Rx, 22)>;
  4501
  4502 def : InstAlias<"mtsdr1 $Rx", (MTSPR 25, gprc:$Rx)>;
  4503 def : InstAlias<"mfsdr1 $Rx", (MFSPR gprc:$Rx, 25)>;
  4504
  4505 def : InstAlias<"mtsrr0 $Rx", (MTSPR 26, gprc:$Rx)>;
  4506 def : InstAlias<"mfsrr0 $Rx", (MFSPR gprc:$Rx, 26)>;
  4507
  4508 def : InstAlias<"mtsrr1 $Rx", (MTSPR 27, gprc:$Rx)>;
  4509 def : InstAlias<"mfsrr1 $Rx", (MFSPR gprc:$Rx, 27)>;



  4630 def : InstAlias<"mfdec $RT", (MFSPR gprc:$RT, 22)>;
  4631 def : InstAlias<"mtdec $RT", (MTSPR 22, gprc:$RT)>;
  4632
  4633 def : InstAlias<"mfpvr $RT", (MFSPR gprc:$RT, 287)>;
  4634
  4635 def : InstAlias<"mfsdr1 $RT", (MFSPR gprc:$RT, 25)>;
  4636 def : InstAlias<"mtsdr1 $RT", (MTSPR 25, gprc:$RT)>;
  4637
  4638 def : InstAlias<"mfsrr0 $RT", (MFSPR gprc:$RT, 26)>;
  4639 def : InstAlias<"mfsrr1 $RT", (MFSPR gprc:$RT, 27)>;
  4640 def : InstAlias<"mtsrr0 $RT", (MTSPR 26, gprc:$RT)>;
  4641 def : InstAlias<"mtsrr1 $RT", (MTSPR 27, gprc:$RT)>;


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D75821

Files:
  llvm/lib/Target/PowerPC/PPCInstrInfo.td
  llvm/test/MC/Disassembler/PowerPC/ppc64-encoding-bookIII.txt
  llvm/test/MC/PowerPC/ppc64-encoding-bookIII.s
  llvm/test/MC/PowerPC/ppc64-encoding-ext.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75821.248985.patch
Type: text/x-patch
Size: 8820 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200308/8bca02e2/attachment.bin>


More information about the llvm-commits mailing list