[PATCH] D46761: [NFC] [Power] Fix instruction format for xsrqpi
Zaara Syeda via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 14 08:49:03 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL332253: [NFC] [Power] Fix instruction format for xsrqpi (authored by syzaara, committed by ).
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D46761?vs=146348&id=146624#toc
Repository:
rL LLVM
https://reviews.llvm.org/D46761
Files:
llvm/trunk/lib/Target/PowerPC/PPCInstrFormats.td
llvm/trunk/lib/Target/PowerPC/PPCInstrVSX.td
Index: llvm/trunk/lib/Target/PowerPC/PPCInstrFormats.td
===================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCInstrFormats.td
+++ llvm/trunk/lib/Target/PowerPC/PPCInstrFormats.td
@@ -2131,6 +2131,27 @@
let Inst{31} = RC;
}
+class Z23Form_8<bits<6> opcode, bits<8> xo, dag OOL, dag IOL, string asmstr,
+ InstrItinClass itin, list<dag> pattern>
+ : I<opcode, OOL, IOL, asmstr, itin> {
+ bits<5> VRT;
+ bit R;
+ bits<5> VRB;
+ bits<2> idx;
+
+ let Pattern = pattern;
+
+ bit RC = 0; // set by isDOT
+
+ let Inst{6-10} = VRT;
+ let Inst{11-14} = 0;
+ let Inst{15} = R;
+ let Inst{16-20} = VRB;
+ let Inst{21-22} = idx;
+ let Inst{23-30} = xo;
+ let Inst{31} = RC;
+}
+
//===----------------------------------------------------------------------===//
class Pseudo<dag OOL, dag IOL, string asmstr, list<dag> pattern>
: I<0, OOL, IOL, asmstr, NoItinerary> {
Index: llvm/trunk/lib/Target/PowerPC/PPCInstrVSX.td
===================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCInstrVSX.td
+++ llvm/trunk/lib/Target/PowerPC/PPCInstrVSX.td
@@ -2575,7 +2575,7 @@
class Z23_VT5_R1_VB5_RMC2_EX1<bits<6> opcode, bits<8> xo, bit ex, string opc,
list<dag> pattern>
- : Z23Form_1<opcode, xo,
+ : Z23Form_8<opcode, xo,
(outs vrrc:$vT), (ins u1imm:$r, vrrc:$vB, u2imm:$rmc),
!strconcat(opc, " $r, $vT, $vB, $rmc"), IIC_VecFP, pattern> {
let RC = ex;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46761.146624.patch
Type: text/x-patch
Size: 1561 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180514/719e8937/attachment.bin>
More information about the llvm-commits
mailing list