llvm.org GIT mirror llvm / c9eecd0
[PowerPC][NFC] Consolidate duplicate XX3Form_SetZero and XX3Form_Zero. Rename one to XX3Form_SameOp, remove the other one. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368856 91177308-0d34-0410-b5e6-96231b3b80d8 Jinsong Ji 3 months ago
2 changed file(s) with 4 addition(s) and 11 deletion(s). Raw diff Collapse all Expand all
12081208 let Inst{31} = XT{5};
12091209 }
12101210
1211 class XX3Form_Zero opcode, bits<8> xo, dag OOL, dag IOL, string asmstr,
1211 class XX3Form_SameOp opcode, bits<8> xo, dag OOL, dag IOL, string asmstr,
12121212 InstrItinClass itin, list pattern>
12131213 : XX3Form {
12141214 let XA = XT;
12151215 let XB = XT;
1216 }
1217
1218 class XX3Form_SetZero opcode, bits<8> xo, dag OOL, dag IOL, string asmstr,
1219 InstrItinClass itin, list pattern>
1220 : XX3Form {
1221 let XB = XT;
1222 let XA = XT;
12231216 }
12241217
12251218 class XX3Form_1 opcode, bits<8> xo, dag OOL, dag IOL, string asmstr,
863863
864864 let isCodeGenOnly = 1, isMoveImm = 1, isAsCheapAsAMove = 1,
865865 isReMaterializable = 1 in {
866 def XXLXORz : XX3Form_Zero<60, 154, (outs vsrc:$XT), (ins),
866 def XXLXORz : XX3Form_SameOp<60, 154, (outs vsrc:$XT), (ins),
867867 "xxlxor $XT, $XT, $XT", IIC_VecGeneral,
868868 [(set v4i32:$XT, (v4i32 immAllZerosV))]>;
869 def XXLXORdpz : XX3Form_SetZero<60, 154,
869 def XXLXORdpz : XX3Form_SameOp<60, 154,
870870 (outs vsfrc:$XT), (ins),
871871 "xxlxor $XT, $XT, $XT", IIC_VecGeneral,
872872 [(set f64:$XT, (fpimm0))]>;
873 def XXLXORspz : XX3Form_SetZero<60, 154,
873 def XXLXORspz : XX3Form_SameOp<60, 154,
874874 (outs vssrc:$XT), (ins),
875875 "xxlxor $XT, $XT, $XT", IIC_VecGeneral,
876876 [(set f32:$XT, (fpimm0))]>;