[PATCH] D14174: [mips][microMIPS] Implement EXTP, EXTPDP, EXTPDPV, EXTPV, EXTR[_RS].W, EXTR_S.H, EXTRV[_RS].W and EXTRV_S.H instructions
Daniel Sanders via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 14 06:05:19 PST 2015
- Previous message: [PATCH] D14114: [mips][microMIPS] Implement SUBQ[_S].PH, SUBQ_S.W, SUBQH[_R].PH, SUBQH[_R].W, SUBU[_S].PH, SUBU[_S].QB and SUBUH[_R].QB instructions
- Next message: [PATCH] D14174: [mips][microMIPS] Implement EXTP, EXTPDP, EXTPDPV, EXTPV, EXTR[_RS].W, EXTR_S.H, EXTRV[_RS].W and EXTRV_S.H instructions
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
dsanders accepted this revision.
dsanders added a comment.
This revision is now accepted and ready to land.
LGTM with a formatting nit.
I didn't double check all the implicit-uses and implicit-defs since I have a lot of reviews to catch up on but the first few looked good.
================
Comment at: lib/Target/Mips/MicroMipsDSPInstrInfo.td:133-146
@@ -120,1 +132,16 @@
+class EXT_MM_2R_DESC_BASE<string instr_asm, SDPatternOperator OpNode,
+ InstrItinClass itin> {
+ dag OutOperandList = (outs GPR32Opnd : $rt);
+ dag InOperandList = (ins ACC64DSPOpnd : $ac, GPR32Opnd : $rs);
+ string AsmString = !strconcat(instr_asm, "\t$rt, $ac, $rs");
+ InstrItinClass Itinerary = itin;
+}
+class EXT_MM_1R_DESC_BASE<string instr_asm, SDPatternOperator OpNode,
+ InstrItinClass itin> {
+ dag OutOperandList = (outs GPR32Opnd : $rt);
+ dag InOperandList = (ins ACC64DSPOpnd : $ac, uimm5 : $imm);
+ string AsmString = !strconcat(instr_asm, "\t$rt, $ac, $imm");
+ InstrItinClass Itinerary = itin;
+}
+
----------------
Formatting nit: 'GPR32Opnd : $rt' -> 'GPR32Opnd:$rt' and similar.
http://reviews.llvm.org/D14174
- Previous message: [PATCH] D14114: [mips][microMIPS] Implement SUBQ[_S].PH, SUBQ_S.W, SUBQH[_R].PH, SUBQH[_R].W, SUBU[_S].PH, SUBU[_S].QB and SUBUH[_R].QB instructions
- Next message: [PATCH] D14174: [mips][microMIPS] Implement EXTP, EXTPDP, EXTPDPV, EXTPV, EXTR[_RS].W, EXTR_S.H, EXTRV[_RS].W and EXTRV_S.H instructions
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the llvm-commits
mailing list