Lines Matching +full:max +full:- +full:rt

1 //=- MicroMips32r6InstrInfo.td - MicroMips r6 Instruction Information -*- tablegen -*-=//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 //===----------------------------------------------------------------------===//
47 //===----------------------------------------------------------------------===//
51 //===----------------------------------------------------------------------===//
254 class MAX_S_MMR6_ENC : POOL32F_MINMAX_FM<"max.s", 0, 0b000001011>;
255 class MAX_D_MMR6_ENC : POOL32F_MINMAX_FM<"max.d", 1, 0b000001011>;
270 //===----------------------------------------------------------------------===//
274 //===----------------------------------------------------------------------===//
279 dag InOperandList = (ins GPROpnd:$rt, opnd:$offset);
281 string AsmString = !strconcat(instr_asm, "\t$rt, $offset");
327 dag InOperandList = (ins GPROpnd:$rs, GPROpnd:$rt, opnd:$offset);
329 string AsmString = !strconcat(instr_asm, "\t$rs, $rt, $offset");
402 dag InOperandList = (ins GPROpnd:$rt);
403 string AsmString = !strconcat(instr_asm, "\t$rd, $rt");
429 dag OutOperandList = (outs GPROpnd:$rt);
431 string AsmString = !strconcat(instr_asm, "\t$rt, $addr");
442 dag OutOperandList = (outs GPROpnd:$rt);
444 string AsmString = !strconcat(instr_asm, "\t$rt, $rs");
474 dag InOperandList = (ins GPROpnd:$rt, opnd:$offset);
475 string AsmString = !strconcat(opstr, "\t$rt, $offset");
519 dag InOperandList = (ins GPROpnd:$rs, GPROpnd:$rt, ImmOpnd:$bp);
520 string AsmString = !strconcat(instr_asm, "\t$rd, $rs, $rt, $bp");
530 dag OutOperandList = (outs GPROpnd:$rt);
532 string AsmString = !strconcat(instr_asm, "\t$rt, $rs, $imm");
541 dag OutOperandList = (outs GPROpnd:$rt);
543 string AsmString = !strconcat(instr_asm, "\t$rt, $imm");
555 dag InOperandList = (ins GPROpnd:$rs, GPROpnd:$rt, ImmOpnd:$imm2);
556 string AsmString = !strconcat(instr_asm, "\t$rt, $rs, $rd, $imm2");
566 dag OutOperandList = (outs GPROpnd:$rt);
568 string AsmString = !strconcat(instr_asm, "\t$rt, $imm");
581 dag InOperandList = (ins GPROpnd:$rs, GPROpnd:$rt);
582 string AsmString = !strconcat(instr_asm, "\t$rd, $rs, $rt");
593 dag OutOperandList = (outs GPR32Opnd:$rt);
595 string AsmString = !strconcat("rdhwr", "\t$rt, $rs, $sel");
613 dag InOperandList = (ins GPROpnd:$rs, GPROpnd:$rt);
614 string AsmString = !strconcat(opstr, "\t$rd, $rs, $rt");
615 list<dag> Pattern = [(set GPROpnd:$rd, (OpNode GPROpnd:$rs, GPROpnd:$rt))];
647 dag OutOperandList = (outs RO:$rt);
648 string AsmString = !strconcat(instr_asm, "\t$rt, $rs");
661 dag InOperandList = (ins SrcRC:$rt, uimm3:$sel);
663 string AsmString = !strconcat(opstr, "\t$rt, $rs, $sel");
673 dag InOperandList = (ins SrcRC:$rt);
675 string AsmString = !strconcat(opstr, "\t$rt, $fs");
676 list<dag> Pattern = [(set DstRC:$fs, (OpNode SrcRC:$rt))];
684 dag InOperandList = (ins DstRC:$fs_in, SrcRC:$rt);
686 string AsmString = !strconcat(opstr, "\t$rt, $fs");
697 dag InOperandList = (ins SrcRC:$rt);
699 string AsmString = !strconcat(opstr, "\t$rt, $impl");
720 dag OutOperandList = (outs DstRC:$rt);
721 string AsmString = !strconcat(opstr, "\t$rt, $rs, $sel");
732 dag OutOperandList = (outs DstRC:$rt);
733 string AsmString = !strconcat(opstr, "\t$rt, $fs");
734 list<dag> Pattern = [(set DstRC:$rt, (OpNode SrcRC:$fs))];
742 dag OutOperandList = (outs DstRC:$rt);
743 string AsmString = !strconcat(opstr, "\t$rt, $impl");
785 dag OutOperandList = (outs COP2Opnd:$rt);
787 string AsmString = !strconcat(opstr, "\t$rt, $addr");
788 list<dag> Pattern = [(set COP2Opnd:$rt, (load addrimm11:$addr))];
800 dag InOperandList = (ins COP2Opnd:$rt, mem_mm_11:$addr);
801 string AsmString = !strconcat(opstr, "\t$rt, $addr");
802 list<dag> Pattern = [(store COP2Opnd:$rt, addrimm11:$addr)];
834 dag InOperandList = (ins GPR32Opnd:$rt, mem_mm_9:$addr);
835 string AsmString = !strconcat(opstr, "\t$rt, $addr");
839 string Constraints = "$rt = $dst";
844 dag OutOperandList = (outs GPR32Opnd:$rt);
846 string AsmString = !strconcat(opstr, "\t$rt, $addr");
902 class MAX_S_MMR6_DESC : MAX_MIN_DESC_BASE<"max.s", FGR32Opnd, II_MAX_S>,
904 class MAX_D_MMR6_DESC : MAX_MIN_DESC_BASE<"max.d", FGR64Opnd, II_MAX_D>,
1126 dag OutOperandList = (outs GPR32Opnd:$rt);
1128 string AsmString = "lw\t$rt, $addr";
1132 list<dag> Pattern = [(set GPR32Opnd:$rt, (load addrDefault:$addr))];
1137 dag OutOperandList = (outs GPR32Opnd:$rt);
1139 string AsmString = "lui\t$rt, $imm16";
1161 dag OutOperandList = (outs GPR32Opnd:$rt);
1163 string AsmString = !strconcat("rdpgpr", "\t$rt, $rd");
1184 : MicroMipsInst16<(outs reglist16:$rt), (ins mem_mm_4sp:$addr),
1185 !strconcat("lwm16", "\t$rt, $addr"), [],
1194 : MicroMipsInst16<(outs), (ins reglist16:$rt, mem_mm_4sp:$addr),
1195 !strconcat("swm16", "\t$rt, $addr"), [],
1205 : MicroMipsInst16<(outs), (ins RTOpnd:$rt, MemOpnd:$addr),
1206 !strconcat(opstr, "\t$rt, $addr"), [], Itin, FrmI>,
1220 : MicroMipsInst16<(outs), (ins GPR32Opnd:$rt, mem_mm_sp_imm5_lsl2:$offset),
1221 !strconcat("sw", "\t$rt, $offset"), [], II_SW, FrmI>,
1228 dag OutOperandList = (outs GPR32Opnd:$rt);
1230 string AsmString = !strconcat("jalrc.hb", "\t$rt, $rs");
1269 InstSE<(outs), (ins FGR64Opnd:$rt, brtarget_mm:$offset),
1270 !strconcat(opstr, "\t$rt, $offset"), [], II_BC1CCZ, FrmI>,
1280 dag InOperandList = (ins COP2Opnd:$rt, brtarget_mm:$offset);
1282 string AsmString = !strconcat(opstr, "\t$rt, $offset");
1291 dag OutOperandList = (outs GPR32Opnd:$rt);
1293 string AsmString = !strconcat("ext", "\t$rt, $rs, $pos, $size");
1294 list<dag> Pattern = [(set GPR32Opnd:$rt, (MipsExt GPR32Opnd:$rs, imm:$pos,
1302 dag OutOperandList = (outs GPR32Opnd:$rt);
1305 string AsmString = !strconcat("ins", "\t$rt, $rs, $pos, $size");
1306 list<dag> Pattern = [(set GPR32Opnd:$rt, (MipsIns GPR32Opnd:$rs, imm:$pos,
1311 string Constraints = "$src = $rt";
1315 dag OutOperandList = (outs GPR32Opnd:$rt);
1317 string AsmString = !strconcat("jalrc", "\t$rt, $rs");
1328 dag InOperandList = (ins GPROpnd:$rt, GPROpnd:$rs, opnd:$offset);
1330 string AsmString = !strconcat(instr_asm, "\t$rt, $rs, $offset");
1338 //===----------------------------------------------------------------------===//
1342 //===----------------------------------------------------------------------===//
1646 //===----------------------------------------------------------------------===//
1650 //===----------------------------------------------------------------------===//
1662 def : MipsInstAlias<"rdhwr $rt, $rs",
1663 (RDHWR_MMR6 GPR32Opnd:$rt, HWRegsOpnd:$rs, 0), 1>,
1665 def : MipsInstAlias<"mtc0 $rt, $rs",
1666 (MTC0_MMR6 COP0Opnd:$rs, GPR32Opnd:$rt, 0), 0>,
1668 def : MipsInstAlias<"mthc0 $rt, $rs",
1669 (MTHC0_MMR6 COP0Opnd:$rs, GPR32Opnd:$rt, 0), 0>,
1671 def : MipsInstAlias<"mfc0 $rt, $rs",
1672 (MFC0_MMR6 GPR32Opnd:$rt, COP0Opnd:$rs, 0), 0>,
1674 def : MipsInstAlias<"mfhc0 $rt, $rs",
1675 (MFHC0_MMR6 GPR32Opnd:$rt, COP0Opnd:$rs, 0), 0>,
1685 def : MipsInstAlias<"and $rs, $rt, $imm",
1686 (ANDI_MMR6 GPR32Opnd:$rs, GPR32Opnd:$rt, uimm16:$imm), 0>,
1691 def : MipsInstAlias<"or $rs, $rt, $imm",
1692 (ORI_MMR6 GPR32Opnd:$rs, GPR32Opnd:$rt, uimm16:$imm), 0>,
1697 def : MipsInstAlias<"xor $rs, $rt, $imm",
1698 (XORI_MMR6 GPR32Opnd:$rs, GPR32Opnd:$rt, uimm16:$imm), 0>,
1703 def : MipsInstAlias<"not $rt, $rs",
1704 (NOR_MMR6 GPR32Opnd:$rt, GPR32Opnd:$rs, ZERO), 0>,
1706 def : MipsInstAlias<"not $rt",
1707 (NOR_MMR6 GPR32Opnd:$rt, GPR32Opnd:$rt, ZERO), 0>,
1712 def : MipsInstAlias<"neg $rt, $rs",
1713 (SUB_MMR6 GPR32Opnd:$rt, ZERO, GPR32Opnd:$rs), 1>,
1715 def : MipsInstAlias<"neg $rt",
1716 (SUB_MMR6 GPR32Opnd:$rt, ZERO, GPR32Opnd:$rt), 1>,
1718 def : MipsInstAlias<"negu $rt, $rs",
1719 (SUBU_MMR6 GPR32Opnd:$rt, ZERO, GPR32Opnd:$rs), 1>,
1721 def : MipsInstAlias<"negu $rt",
1722 (SUBU_MMR6 GPR32Opnd:$rt, ZERO, GPR32Opnd:$rt), 1>,
1733 //===----------------------------------------------------------------------===//
1737 //===----------------------------------------------------------------------===//