2014-05-09 09:46:21 +00:00
|
|
|
//=- Mips32r6InstrInfo.td - Mips32r6 Instruction Information -*- tablegen -*-=//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file describes Mips32r6 instructions.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2014-05-12 15:12:45 +00:00
|
|
|
include "Mips32r6InstrFormats.td"
|
|
|
|
|
2014-05-09 09:46:21 +00:00
|
|
|
// Notes about removals/changes from MIPS32r6:
|
|
|
|
// Unclear: ssnop
|
|
|
|
// Reencoded: cache, pref
|
|
|
|
// Reencoded: clo, clz
|
|
|
|
// Reencoded: jr -> jalr
|
|
|
|
// Reencoded: jr.hb -> jalr.hb
|
|
|
|
// Reencoded: ldc2
|
|
|
|
// Reencoded: ll, sc
|
|
|
|
// Reencoded: lwc2
|
|
|
|
// Reencoded: sdbbp
|
|
|
|
// Reencoded: sdc2
|
|
|
|
// Reencoded: swc2
|
|
|
|
// Removed: bc1any2, bc1any4
|
|
|
|
// Removed: bc2[ft]
|
|
|
|
// Removed: bc2f, bc2t
|
|
|
|
// Removed: bgezal
|
|
|
|
// Removed: bltzal
|
|
|
|
// Removed: c.cond.fmt, bc1[ft]
|
|
|
|
// Removed: div, divu
|
|
|
|
// Removed: jalx
|
|
|
|
// Removed: ldxc1
|
|
|
|
// Removed: luxc1
|
|
|
|
// Removed: lwxc1
|
|
|
|
// Removed: madd.[ds], nmadd.[ds], nmsub.[ds], sub.[ds]
|
|
|
|
// Removed: mfhi, mflo, mthi, mtlo, madd, maddu, msub, msubu, mul
|
|
|
|
// Removed: movf, movt
|
|
|
|
// Removed: movf.fmt, movt.fmt, movn.fmt, movz.fmt
|
|
|
|
// Removed: movn, movz
|
|
|
|
// Removed: mult, multu
|
|
|
|
// Removed: prefx
|
|
|
|
// Removed: sdxc1
|
|
|
|
// Removed: suxc1
|
|
|
|
// Removed: swxc1
|
|
|
|
// Rencoded: [ls][wd]c2
|
|
|
|
|
2014-05-16 11:03:45 +00:00
|
|
|
def brtarget21 : Operand<OtherVT> {
|
|
|
|
let EncoderMethod = "getBranchTarget21OpValue";
|
|
|
|
let OperandType = "OPERAND_PCREL";
|
|
|
|
let DecoderMethod = "DecodeBranchTarget21";
|
|
|
|
let ParserMatchClass = MipsJumpTargetAsmOperand;
|
|
|
|
}
|
|
|
|
|
|
|
|
def brtarget26 : Operand<OtherVT> {
|
|
|
|
let EncoderMethod = "getBranchTarget26OpValue";
|
|
|
|
let OperandType = "OPERAND_PCREL";
|
|
|
|
let DecoderMethod = "DecodeBranchTarget26";
|
|
|
|
let ParserMatchClass = MipsJumpTargetAsmOperand;
|
|
|
|
}
|
|
|
|
|
2014-05-16 13:19:46 +00:00
|
|
|
def jmpoffset16 : Operand<OtherVT> {
|
|
|
|
let EncoderMethod = "getJumpOffset16OpValue";
|
|
|
|
let ParserMatchClass = MipsJumpTargetAsmOperand;
|
|
|
|
}
|
|
|
|
|
|
|
|
def calloffset16 : Operand<iPTR> {
|
|
|
|
let EncoderMethod = "getJumpOffset16OpValue";
|
|
|
|
let ParserMatchClass = MipsJumpTargetAsmOperand;
|
|
|
|
}
|
|
|
|
|
2014-05-12 15:12:45 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// Instruction Encodings
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2014-05-15 10:45:58 +00:00
|
|
|
class ADDIUPC_ENC : PCREL19_FM<OPCODE2_ADDIUPC>;
|
2014-05-15 12:06:36 +00:00
|
|
|
class ALIGN_ENC : SPECIAL3_ALIGN_FM<OPCODE6_ALIGN>;
|
2014-05-15 10:45:58 +00:00
|
|
|
class ALUIPC_ENC : PCREL16_FM<OPCODE5_ALUIPC>;
|
2014-05-15 10:27:19 +00:00
|
|
|
class AUI_ENC : AUI_FM;
|
2014-05-15 10:45:58 +00:00
|
|
|
class AUIPC_ENC : PCREL16_FM<OPCODE5_AUIPC>;
|
2014-05-16 11:03:45 +00:00
|
|
|
|
2014-05-20 14:46:24 +00:00
|
|
|
class BALC_ENC : BRANCH_OFF26_FM<0b111010>;
|
|
|
|
class BC_ENC : BRANCH_OFF26_FM<0b110010>;
|
2014-05-22 11:23:21 +00:00
|
|
|
class BEQC_ENC : CMP_BRANCH_2R_OFF16_FM<OPGROUP_ADDI>,
|
|
|
|
DecodeDisambiguates<"AddiGroupBranch">;
|
|
|
|
class BEQZALC_ENC : CMP_BRANCH_1R_RT_OFF16_FM<OPGROUP_ADDI>,
|
|
|
|
DecodeDisambiguatedBy<"DaddiGroupBranch">;
|
|
|
|
class BNEC_ENC : CMP_BRANCH_2R_OFF16_FM<OPGROUP_DADDI>,
|
|
|
|
DecodeDisambiguates<"DaddiGroupBranch">;
|
|
|
|
class BNEZALC_ENC : CMP_BRANCH_1R_RT_OFF16_FM<OPGROUP_DADDI>,
|
|
|
|
DecodeDisambiguatedBy<"DaddiGroupBranch">;
|
|
|
|
|
|
|
|
class BLTZC_ENC : CMP_BRANCH_1R_BOTH_OFF16_FM<OPGROUP_BGTZL>,
|
|
|
|
DecodeDisambiguates<"BgtzlGroupBranch">;
|
|
|
|
class BGEZC_ENC : CMP_BRANCH_1R_BOTH_OFF16_FM<OPGROUP_BLEZL>,
|
|
|
|
DecodeDisambiguates<"BlezlGroupBranch">;
|
|
|
|
class BGTZALC_ENC : CMP_BRANCH_1R_RT_OFF16_FM<OPGROUP_BGTZ>,
|
|
|
|
DecodeDisambiguatedBy<"BgtzGroupBranch">;
|
|
|
|
|
|
|
|
class BLEZC_ENC : CMP_BRANCH_1R_RT_OFF16_FM<OPGROUP_BLEZL>,
|
|
|
|
DecodeDisambiguatedBy<"BlezlGroupBranch">;
|
|
|
|
class BLTZALC_ENC : CMP_BRANCH_1R_BOTH_OFF16_FM<OPGROUP_BGTZ>,
|
|
|
|
DecodeDisambiguates<"BgtzGroupBranch">;
|
|
|
|
class BGTZC_ENC : CMP_BRANCH_1R_RT_OFF16_FM<OPGROUP_BGTZL>,
|
|
|
|
DecodeDisambiguatedBy<"BgtzlGroupBranch">;
|
2014-05-16 11:03:45 +00:00
|
|
|
|
2014-05-20 14:46:24 +00:00
|
|
|
class BEQZC_ENC : CMP_BRANCH_OFF21_FM<0b110110>;
|
2014-05-22 11:23:21 +00:00
|
|
|
class BGEZALC_ENC : CMP_BRANCH_1R_BOTH_OFF16_FM<OPGROUP_BLEZ>;
|
2014-05-20 14:46:24 +00:00
|
|
|
class BNEZC_ENC : CMP_BRANCH_OFF21_FM<0b111110>;
|
|
|
|
|
2014-05-21 12:56:39 +00:00
|
|
|
class BC1EQZ_ENC : COP1_BCCZ_FM<OPCODE5_BC1EQZ>;
|
|
|
|
class BC1NEZ_ENC : COP1_BCCZ_FM<OPCODE5_BC1NEZ>;
|
|
|
|
class BC2EQZ_ENC : COP2_BCCZ_FM<OPCODE5_BC2EQZ>;
|
|
|
|
class BC2NEZ_ENC : COP2_BCCZ_FM<OPCODE5_BC2NEZ>;
|
|
|
|
|
2014-05-20 14:46:24 +00:00
|
|
|
class JIALC_ENC : JMP_IDX_COMPACT_FM<0b111110>;
|
|
|
|
class JIC_ENC : JMP_IDX_COMPACT_FM<0b110110>;
|
2014-05-16 13:19:46 +00:00
|
|
|
|
2014-05-15 12:18:23 +00:00
|
|
|
class BITSWAP_ENC : SPECIAL3_2R_FM<OPCODE6_BITSWAP>;
|
2014-05-22 11:23:21 +00:00
|
|
|
class BLEZALC_ENC : CMP_BRANCH_1R_RT_OFF16_FM<OPGROUP_BLEZ>;
|
|
|
|
class BNVC_ENC : CMP_BRANCH_2R_OFF16_FM<OPGROUP_DADDI>,
|
|
|
|
DecodeDisambiguatedBy<"DaddiGroupBranch">;
|
|
|
|
class BOVC_ENC : CMP_BRANCH_2R_OFF16_FM<OPGROUP_ADDI>,
|
|
|
|
DecodeDisambiguatedBy<"AddiGroupBranch">;
|
2014-05-12 15:24:16 +00:00
|
|
|
class DIV_ENC : SPECIAL_3R_FM<0b00010, 0b011010>;
|
|
|
|
class DIVU_ENC : SPECIAL_3R_FM<0b00010, 0b011011>;
|
2014-05-20 14:46:24 +00:00
|
|
|
class MOD_ENC : SPECIAL_3R_FM<0b00011, 0b011010>;
|
|
|
|
class MODU_ENC : SPECIAL_3R_FM<0b00011, 0b011011>;
|
|
|
|
class MUH_ENC : SPECIAL_3R_FM<0b00011, 0b011000>;
|
|
|
|
class MUHU_ENC : SPECIAL_3R_FM<0b00011, 0b011001>;
|
|
|
|
class MUL_R6_ENC : SPECIAL_3R_FM<0b00010, 0b011000>;
|
|
|
|
class MULU_ENC : SPECIAL_3R_FM<0b00010, 0b011001>;
|
2014-05-16 08:42:27 +00:00
|
|
|
|
|
|
|
class MADDF_S_ENC : COP1_3R_FM<0b011000, FIELD_FMT_S>;
|
|
|
|
class MADDF_D_ENC : COP1_3R_FM<0b011000, FIELD_FMT_D>;
|
|
|
|
class MSUBF_S_ENC : COP1_3R_FM<0b011001, FIELD_FMT_S>;
|
|
|
|
class MSUBF_D_ENC : COP1_3R_FM<0b011001, FIELD_FMT_D>;
|
|
|
|
|
2014-05-20 14:46:24 +00:00
|
|
|
class SEL_D_ENC : COP1_3R_FM<0b010000, FIELD_FMT_D>;
|
|
|
|
class SEL_S_ENC : COP1_3R_FM<0b010000, FIELD_FMT_S>;
|
|
|
|
|
|
|
|
class SELEQZ_ENC : SPECIAL_3R_FM<0b00000, 0b110101>;
|
|
|
|
class SELNEZ_ENC : SPECIAL_3R_FM<0b00000, 0b110111>;
|
|
|
|
|
|
|
|
class LWPC_ENC : PCREL19_FM<OPCODE2_LWPC>;
|
|
|
|
class LWUPC_ENC : PCREL19_FM<OPCODE2_LWUPC>;
|
|
|
|
|
2014-05-15 14:54:06 +00:00
|
|
|
class MAX_S_ENC : COP1_3R_FM<0b011101, FIELD_FMT_S>;
|
|
|
|
class MAX_D_ENC : COP1_3R_FM<0b011101, FIELD_FMT_D>;
|
|
|
|
class MIN_S_ENC : COP1_3R_FM<0b011100, FIELD_FMT_S>;
|
|
|
|
class MIN_D_ENC : COP1_3R_FM<0b011100, FIELD_FMT_D>;
|
|
|
|
|
|
|
|
class MAXA_S_ENC : COP1_3R_FM<0b011111, FIELD_FMT_S>;
|
|
|
|
class MAXA_D_ENC : COP1_3R_FM<0b011111, FIELD_FMT_D>;
|
|
|
|
class MINA_S_ENC : COP1_3R_FM<0b011110, FIELD_FMT_S>;
|
|
|
|
class MINA_D_ENC : COP1_3R_FM<0b011110, FIELD_FMT_D>;
|
|
|
|
|
2014-05-15 14:58:42 +00:00
|
|
|
class SELEQZ_S_ENC : COP1_3R_FM<0b010100, FIELD_FMT_S>;
|
|
|
|
class SELEQZ_D_ENC : COP1_3R_FM<0b010100, FIELD_FMT_D>;
|
|
|
|
class SELNEZ_S_ENC : COP1_3R_FM<0b010111, FIELD_FMT_S>;
|
|
|
|
class SELNEZ_D_ENC : COP1_3R_FM<0b010111, FIELD_FMT_D>;
|
|
|
|
|
2014-05-15 15:04:37 +00:00
|
|
|
class RINT_S_ENC : COP1_2R_FM<0b011010, FIELD_FMT_S>;
|
|
|
|
class RINT_D_ENC : COP1_2R_FM<0b011010, FIELD_FMT_D>;
|
2014-05-20 14:46:24 +00:00
|
|
|
class CLASS_S_ENC : COP1_2R_FM<0b011011, FIELD_FMT_S>;
|
|
|
|
class CLASS_D_ENC : COP1_2R_FM<0b011011, FIELD_FMT_D>;
|
2014-05-15 15:04:37 +00:00
|
|
|
|
2014-05-20 14:46:24 +00:00
|
|
|
class CMP_CONDN_DESC_BASE<string CondStr, string Typestr, RegisterOperand FGROpnd> {
|
2014-05-16 09:48:29 +00:00
|
|
|
dag OutOperandList = (outs FGROpnd:$fd);
|
|
|
|
dag InOperandList = (ins FGROpnd:$fs, FGROpnd:$ft);
|
2014-05-20 14:46:24 +00:00
|
|
|
string AsmString = !strconcat("cmp.", CondStr, ".", Typestr, "\t$fd, $fs, $ft");
|
2014-05-16 09:48:29 +00:00
|
|
|
list<dag> Pattern = [];
|
|
|
|
}
|
|
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// Instruction Multiclasses
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
multiclass CMP_CC_M <FIELD_CMP_FORMAT Format, string Typestr,
|
|
|
|
RegisterOperand FGROpnd>{
|
|
|
|
def CMP_F_#NAME : COP1_CMP_CONDN_FM<Format, FIELD_CMP_COND_F>,
|
|
|
|
CMP_CONDN_DESC_BASE<"f", Typestr, FGROpnd>,
|
|
|
|
ISA_MIPS32R6;
|
|
|
|
def CMP_UN_#NAME : COP1_CMP_CONDN_FM<Format, FIELD_CMP_COND_UN>,
|
|
|
|
CMP_CONDN_DESC_BASE<"un", Typestr, FGROpnd>,
|
|
|
|
ISA_MIPS32R6;
|
|
|
|
def CMP_EQ_#NAME : COP1_CMP_CONDN_FM<Format, FIELD_CMP_COND_EQ>,
|
|
|
|
CMP_CONDN_DESC_BASE<"eq", Typestr, FGROpnd>,
|
|
|
|
ISA_MIPS32R6;
|
|
|
|
def CMP_UEQ_#NAME : COP1_CMP_CONDN_FM<Format, FIELD_CMP_COND_UEQ>,
|
|
|
|
CMP_CONDN_DESC_BASE<"ueq", Typestr, FGROpnd>,
|
|
|
|
ISA_MIPS32R6;
|
|
|
|
def CMP_OLT_#NAME : COP1_CMP_CONDN_FM<Format, FIELD_CMP_COND_OLT>,
|
|
|
|
CMP_CONDN_DESC_BASE<"olt", Typestr, FGROpnd>,
|
|
|
|
ISA_MIPS32R6;
|
|
|
|
def CMP_ULT_#NAME : COP1_CMP_CONDN_FM<Format, FIELD_CMP_COND_ULT>,
|
|
|
|
CMP_CONDN_DESC_BASE<"ult", Typestr, FGROpnd>,
|
|
|
|
ISA_MIPS32R6;
|
|
|
|
def CMP_OLE_#NAME : COP1_CMP_CONDN_FM<Format, FIELD_CMP_COND_OLE>,
|
|
|
|
CMP_CONDN_DESC_BASE<"ole", Typestr, FGROpnd>,
|
|
|
|
ISA_MIPS32R6;
|
|
|
|
def CMP_ULE_#NAME : COP1_CMP_CONDN_FM<Format, FIELD_CMP_COND_ULE>,
|
|
|
|
CMP_CONDN_DESC_BASE<"ule", Typestr, FGROpnd>,
|
|
|
|
ISA_MIPS32R6;
|
|
|
|
def CMP_SF_#NAME : COP1_CMP_CONDN_FM<Format, FIELD_CMP_COND_SF>,
|
|
|
|
CMP_CONDN_DESC_BASE<"sf", Typestr, FGROpnd>,
|
|
|
|
ISA_MIPS32R6;
|
|
|
|
def CMP_NGLE_#NAME : COP1_CMP_CONDN_FM<Format, FIELD_CMP_COND_NGLE>,
|
|
|
|
CMP_CONDN_DESC_BASE<"ngle", Typestr, FGROpnd>,
|
|
|
|
ISA_MIPS32R6;
|
|
|
|
def CMP_SEQ_#NAME : COP1_CMP_CONDN_FM<Format, FIELD_CMP_COND_SEQ>,
|
|
|
|
CMP_CONDN_DESC_BASE<"seq", Typestr, FGROpnd>,
|
|
|
|
ISA_MIPS32R6;
|
|
|
|
def CMP_NGL_#NAME : COP1_CMP_CONDN_FM<Format, FIELD_CMP_COND_NGL>,
|
|
|
|
CMP_CONDN_DESC_BASE<"ngl", Typestr, FGROpnd>,
|
|
|
|
ISA_MIPS32R6;
|
|
|
|
def CMP_LT_#NAME : COP1_CMP_CONDN_FM<Format, FIELD_CMP_COND_LT>,
|
|
|
|
CMP_CONDN_DESC_BASE<"lt", Typestr, FGROpnd>,
|
|
|
|
ISA_MIPS32R6;
|
|
|
|
def CMP_NGE_#NAME : COP1_CMP_CONDN_FM<Format, FIELD_CMP_COND_NGE>,
|
|
|
|
CMP_CONDN_DESC_BASE<"nge", Typestr, FGROpnd>,
|
|
|
|
ISA_MIPS32R6;
|
|
|
|
def CMP_LE_#NAME : COP1_CMP_CONDN_FM<Format, FIELD_CMP_COND_LE>,
|
|
|
|
CMP_CONDN_DESC_BASE<"le", Typestr, FGROpnd>,
|
|
|
|
ISA_MIPS32R6;
|
|
|
|
def CMP_NGT_#NAME : COP1_CMP_CONDN_FM<Format, FIELD_CMP_COND_NGT>,
|
|
|
|
CMP_CONDN_DESC_BASE<"ngt", Typestr, FGROpnd>,
|
|
|
|
ISA_MIPS32R6;
|
|
|
|
}
|
|
|
|
|
2014-05-12 15:12:45 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// Instruction Descriptions
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2014-05-16 10:27:10 +00:00
|
|
|
class PCREL19_DESC_BASE<string instr_asm, RegisterOperand GPROpnd> {
|
2014-05-15 10:45:58 +00:00
|
|
|
dag OutOperandList = (outs GPROpnd:$rs);
|
|
|
|
dag InOperandList = (ins simm19_lsl2:$imm);
|
|
|
|
string AsmString = !strconcat(instr_asm, "\t$rs, $imm");
|
|
|
|
list<dag> Pattern = [];
|
|
|
|
}
|
|
|
|
|
2014-05-16 10:27:10 +00:00
|
|
|
class ADDIUPC_DESC : PCREL19_DESC_BASE<"addiupc", GPR32Opnd>;
|
|
|
|
class LWPC_DESC: PCREL19_DESC_BASE<"lwpc", GPR32Opnd>;
|
|
|
|
class LWUPC_DESC: PCREL19_DESC_BASE<"lwupc", GPR32Opnd>;
|
2014-05-15 10:45:58 +00:00
|
|
|
|
2014-05-15 12:06:36 +00:00
|
|
|
class ALIGN_DESC_BASE<string instr_asm, RegisterOperand GPROpnd,
|
|
|
|
Operand ImmOpnd> {
|
|
|
|
dag OutOperandList = (outs GPROpnd:$rd);
|
|
|
|
dag InOperandList = (ins GPROpnd:$rs, GPROpnd:$rt, ImmOpnd:$bp);
|
|
|
|
string AsmString = !strconcat(instr_asm, "\t$rd, $rs, $rt, $bp");
|
|
|
|
list<dag> Pattern = [];
|
|
|
|
}
|
|
|
|
|
|
|
|
class ALIGN_DESC : ALIGN_DESC_BASE<"align", GPR32Opnd, uimm2>;
|
|
|
|
|
2014-05-15 10:45:58 +00:00
|
|
|
class ALUIPC_DESC_BASE<string instr_asm, RegisterOperand GPROpnd> {
|
|
|
|
dag OutOperandList = (outs GPROpnd:$rs);
|
|
|
|
dag InOperandList = (ins simm16:$imm);
|
|
|
|
string AsmString = !strconcat(instr_asm, "\t$rs, $imm");
|
|
|
|
list<dag> Pattern = [];
|
|
|
|
}
|
|
|
|
|
|
|
|
class ALUIPC_DESC : ALUIPC_DESC_BASE<"aluipc", GPR32Opnd>;
|
|
|
|
class AUIPC_DESC : ALUIPC_DESC_BASE<"auipc", GPR32Opnd>;
|
|
|
|
|
2014-05-15 10:27:19 +00:00
|
|
|
class AUI_DESC_BASE<string instr_asm, RegisterOperand GPROpnd> {
|
|
|
|
dag OutOperandList = (outs GPROpnd:$rs);
|
|
|
|
dag InOperandList = (ins GPROpnd:$rt, simm16:$imm);
|
|
|
|
string AsmString = !strconcat(instr_asm, "\t$rs, $rt, $imm");
|
|
|
|
list<dag> Pattern = [];
|
|
|
|
}
|
|
|
|
|
|
|
|
class AUI_DESC : AUI_DESC_BASE<"aui", GPR32Opnd>;
|
|
|
|
|
2014-05-16 11:03:45 +00:00
|
|
|
class BRANCH_DESC_BASE {
|
|
|
|
bit isBranch = 1;
|
|
|
|
bit isTerminator = 1;
|
|
|
|
bit hasDelaySlot = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
class BC_DESC_BASE<string instr_asm, DAGOperand opnd> : BRANCH_DESC_BASE {
|
|
|
|
dag InOperandList = (ins opnd:$offset);
|
|
|
|
dag OutOperandList = (outs);
|
|
|
|
string AsmString = !strconcat(instr_asm, "\t$offset");
|
|
|
|
bit isBarrier = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
class CMP_BC_DESC_BASE<string instr_asm, DAGOperand opnd,
|
|
|
|
RegisterOperand GPROpnd> : BRANCH_DESC_BASE {
|
|
|
|
dag InOperandList = (ins GPROpnd:$rs, GPROpnd:$rt, opnd:$offset);
|
|
|
|
dag OutOperandList = (outs);
|
|
|
|
string AsmString = !strconcat(instr_asm, "\t$rs, $rt, $offset");
|
|
|
|
list<Register> Defs = [AT];
|
|
|
|
}
|
|
|
|
|
2014-05-20 14:46:24 +00:00
|
|
|
class CMP_CBR_EQNE_Z_DESC_BASE<string instr_asm, DAGOperand opnd,
|
|
|
|
RegisterOperand GPROpnd> : BRANCH_DESC_BASE {
|
|
|
|
dag InOperandList = (ins GPROpnd:$rs, opnd:$offset);
|
|
|
|
dag OutOperandList = (outs);
|
|
|
|
string AsmString = !strconcat(instr_asm, "\t$rs, $offset");
|
|
|
|
list<Register> Defs = [AT];
|
|
|
|
}
|
2014-05-16 11:03:45 +00:00
|
|
|
|
|
|
|
class CMP_CBR_RT_Z_DESC_BASE<string instr_asm, DAGOperand opnd,
|
|
|
|
RegisterOperand GPROpnd> : BRANCH_DESC_BASE {
|
2014-05-22 11:23:21 +00:00
|
|
|
dag InOperandList = (ins GPROpnd:$rt, opnd:$offset);
|
2014-05-16 11:03:45 +00:00
|
|
|
dag OutOperandList = (outs);
|
|
|
|
string AsmString = !strconcat(instr_asm, "\t$rt, $offset");
|
|
|
|
list<Register> Defs = [AT];
|
|
|
|
}
|
|
|
|
|
2014-05-20 14:46:24 +00:00
|
|
|
class BALC_DESC : BC_DESC_BASE<"balc", brtarget26> {
|
|
|
|
bit isCall = 1;
|
|
|
|
list<Register> Defs = [RA];
|
|
|
|
}
|
|
|
|
|
|
|
|
class BC_DESC : BC_DESC_BASE<"bc", brtarget26>;
|
|
|
|
class BEQC_DESC : CMP_BC_DESC_BASE<"beqc", brtarget, GPR32Opnd>;
|
|
|
|
class BNEC_DESC : CMP_BC_DESC_BASE<"bnec", brtarget, GPR32Opnd>;
|
|
|
|
|
2014-05-22 11:23:21 +00:00
|
|
|
class BLTZC_DESC : CMP_CBR_RT_Z_DESC_BASE<"bltzc", brtarget, GPR32Opnd>;
|
|
|
|
class BGEZC_DESC : CMP_CBR_RT_Z_DESC_BASE<"bgezc", brtarget, GPR32Opnd>;
|
2014-05-16 11:03:45 +00:00
|
|
|
|
|
|
|
class BLEZC_DESC : CMP_CBR_RT_Z_DESC_BASE<"blezc", brtarget, GPR32Opnd>;
|
|
|
|
class BGTZC_DESC : CMP_CBR_RT_Z_DESC_BASE<"bgtzc", brtarget, GPR32Opnd>;
|
|
|
|
|
2014-05-19 14:57:46 +00:00
|
|
|
class BEQZC_DESC : CMP_CBR_EQNE_Z_DESC_BASE<"beqzc", brtarget21, GPR32Opnd>;
|
|
|
|
class BNEZC_DESC : CMP_CBR_EQNE_Z_DESC_BASE<"bnezc", brtarget21, GPR32Opnd>;
|
2014-05-12 15:24:16 +00:00
|
|
|
|
2014-05-21 12:56:39 +00:00
|
|
|
class COP1_BCCZ_DESC_BASE<string instr_asm> : BRANCH_DESC_BASE {
|
|
|
|
dag InOperandList = (ins FGR64Opnd:$ft, brtarget:$offset);
|
|
|
|
dag OutOperandList = (outs);
|
|
|
|
string AsmString = instr_asm;
|
|
|
|
bit hasDelaySlot = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
class BC1EQZ_DESC : COP1_BCCZ_DESC_BASE<"bc1eqz $ft, $offset">;
|
|
|
|
class BC1NEZ_DESC : COP1_BCCZ_DESC_BASE<"bc1nez $ft, $offset">;
|
|
|
|
|
|
|
|
class COP2_BCCZ_DESC_BASE<string instr_asm> : BRANCH_DESC_BASE {
|
|
|
|
dag InOperandList = (ins COP2Opnd:$ct, brtarget:$offset);
|
|
|
|
dag OutOperandList = (outs);
|
|
|
|
string AsmString = instr_asm;
|
|
|
|
bit hasDelaySlot = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
class BC2EQZ_DESC : COP2_BCCZ_DESC_BASE<"bc2eqz $ct, $offset">;
|
|
|
|
class BC2NEZ_DESC : COP2_BCCZ_DESC_BASE<"bc2nez $ct, $offset">;
|
|
|
|
|
2014-05-22 11:23:21 +00:00
|
|
|
class BOVC_DESC : CMP_BC_DESC_BASE<"bovc", brtarget, GPR32Opnd>;
|
|
|
|
class BNVC_DESC : CMP_BC_DESC_BASE<"bnvc", brtarget, GPR32Opnd>;
|
|
|
|
|
2014-05-20 14:46:24 +00:00
|
|
|
class JMP_IDX_COMPACT_DESC_BASE<string opstr, DAGOperand opnd,
|
|
|
|
RegisterOperand GPROpnd> {
|
|
|
|
dag InOperandList = (ins GPROpnd:$rt, opnd:$offset);
|
|
|
|
string AsmString = !strconcat(opstr, "\t$rt, $offset");
|
|
|
|
list<dag> Pattern = [];
|
|
|
|
bit isTerminator = 1;
|
|
|
|
bit hasDelaySlot = 0;
|
|
|
|
string DecoderMethod = "DecodeSimm16";
|
2014-05-16 12:27:19 +00:00
|
|
|
}
|
|
|
|
|
2014-05-20 14:46:24 +00:00
|
|
|
class JIALC_DESC : JMP_IDX_COMPACT_DESC_BASE<"jialc", calloffset16,
|
|
|
|
GPR32Opnd> {
|
|
|
|
bit isCall = 1;
|
2014-05-16 12:27:19 +00:00
|
|
|
list<Register> Defs = [RA];
|
|
|
|
}
|
|
|
|
|
2014-05-20 14:46:24 +00:00
|
|
|
class JIC_DESC : JMP_IDX_COMPACT_DESC_BASE<"jic", jmpoffset16, GPR32Opnd> {
|
|
|
|
bit isBarrier = 1;
|
|
|
|
list<Register> Defs = [AT];
|
2014-05-16 12:27:19 +00:00
|
|
|
}
|
2014-05-19 14:57:46 +00:00
|
|
|
|
|
|
|
class BITSWAP_DESC_BASE<string instr_asm, RegisterOperand GPROpnd> {
|
2014-05-12 15:12:45 +00:00
|
|
|
dag OutOperandList = (outs GPROpnd:$rd);
|
2014-05-19 14:57:46 +00:00
|
|
|
dag InOperandList = (ins GPROpnd:$rt);
|
|
|
|
string AsmString = !strconcat(instr_asm, "\t$rd, $rt");
|
2014-05-12 15:12:45 +00:00
|
|
|
list<dag> Pattern = [];
|
|
|
|
}
|
|
|
|
|
2014-05-19 14:57:46 +00:00
|
|
|
class BITSWAP_DESC : BITSWAP_DESC_BASE<"bitswap", GPR32Opnd>;
|
2014-05-12 15:12:45 +00:00
|
|
|
|
2014-05-19 14:57:46 +00:00
|
|
|
class DIVMOD_DESC_BASE<string instr_asm, RegisterOperand GPROpnd> {
|
2014-05-16 13:40:57 +00:00
|
|
|
dag OutOperandList = (outs GPROpnd:$rd);
|
|
|
|
dag InOperandList = (ins GPROpnd:$rs, GPROpnd:$rt);
|
|
|
|
string AsmString = !strconcat(instr_asm, "\t$rd, $rs, $rt");
|
|
|
|
list<dag> Pattern = [];
|
|
|
|
}
|
|
|
|
|
2014-05-19 14:57:46 +00:00
|
|
|
class DIV_DESC : DIVMOD_DESC_BASE<"div", GPR32Opnd>;
|
|
|
|
class DIVU_DESC : DIVMOD_DESC_BASE<"divu", GPR32Opnd>;
|
|
|
|
class MOD_DESC : DIVMOD_DESC_BASE<"mod", GPR32Opnd>;
|
|
|
|
class MODU_DESC : DIVMOD_DESC_BASE<"modu", GPR32Opnd>;
|
|
|
|
|
2014-05-20 14:46:24 +00:00
|
|
|
class BEQZALC_DESC : CMP_CBR_RT_Z_DESC_BASE<"beqzalc", brtarget, GPR32Opnd> {
|
|
|
|
list<Register> Defs = [RA];
|
2014-05-19 14:57:46 +00:00
|
|
|
}
|
|
|
|
|
2014-05-20 14:46:24 +00:00
|
|
|
class BGEZALC_DESC : CMP_CBR_RT_Z_DESC_BASE<"bgezalc", brtarget, GPR32Opnd> {
|
2014-05-19 14:57:46 +00:00
|
|
|
list<Register> Defs = [RA];
|
|
|
|
}
|
|
|
|
|
2014-05-20 14:46:24 +00:00
|
|
|
class BGTZALC_DESC : CMP_CBR_RT_Z_DESC_BASE<"bgtzalc", brtarget, GPR32Opnd> {
|
|
|
|
list<Register> Defs = [RA];
|
|
|
|
}
|
|
|
|
|
|
|
|
class BLEZALC_DESC : CMP_CBR_RT_Z_DESC_BASE<"blezalc", brtarget, GPR32Opnd> {
|
|
|
|
list<Register> Defs = [RA];
|
|
|
|
}
|
|
|
|
|
|
|
|
class BLTZALC_DESC : CMP_CBR_RT_Z_DESC_BASE<"bltzalc", brtarget, GPR32Opnd> {
|
|
|
|
list<Register> Defs = [RA];
|
2014-05-19 14:57:46 +00:00
|
|
|
}
|
|
|
|
|
2014-05-20 14:46:24 +00:00
|
|
|
class BNEZALC_DESC : CMP_CBR_RT_Z_DESC_BASE<"bnezalc", brtarget, GPR32Opnd> {
|
|
|
|
list<Register> Defs = [RA];
|
|
|
|
}
|
|
|
|
class MUL_R6_DESC_BASE<string instr_asm, RegisterOperand GPROpnd> {
|
|
|
|
dag OutOperandList = (outs GPROpnd:$rd);
|
|
|
|
dag InOperandList = (ins GPROpnd:$rs, GPROpnd:$rt);
|
|
|
|
string AsmString = !strconcat(instr_asm, "\t$rd, $rs, $rt");
|
|
|
|
list<dag> Pattern = [];
|
|
|
|
}
|
|
|
|
|
|
|
|
class MUH_DESC : MUL_R6_DESC_BASE<"muh", GPR32Opnd>;
|
|
|
|
class MUHU_DESC : MUL_R6_DESC_BASE<"muhu", GPR32Opnd>;
|
|
|
|
class MUL_R6_DESC : MUL_R6_DESC_BASE<"mul", GPR32Opnd>;
|
|
|
|
class MULU_DESC : MUL_R6_DESC_BASE<"mulu", GPR32Opnd>;
|
|
|
|
|
2014-05-19 14:57:46 +00:00
|
|
|
class COP1_4R_DESC_BASE<string instr_asm, RegisterOperand FGROpnd> {
|
|
|
|
dag OutOperandList = (outs FGROpnd:$fd);
|
|
|
|
dag InOperandList = (ins FGROpnd:$fd_in, FGROpnd:$fs, FGROpnd:$ft);
|
|
|
|
string AsmString = !strconcat(instr_asm, "\t$fd, $fs, $ft");
|
|
|
|
list<dag> Pattern = [];
|
|
|
|
string Constraints = "$fd_in = $fd";
|
|
|
|
}
|
2014-05-16 13:40:57 +00:00
|
|
|
|
2014-05-20 14:46:24 +00:00
|
|
|
class SEL_D_DESC : COP1_4R_DESC_BASE<"sel.d", FGR64Opnd>;
|
|
|
|
class SEL_S_DESC : COP1_4R_DESC_BASE<"sel.s", FGR32Opnd>;
|
|
|
|
|
|
|
|
class SELEQNE_Z_DESC_BASE<string instr_asm, RegisterOperand GPROpnd> {
|
|
|
|
dag OutOperandList = (outs GPROpnd:$rd);
|
|
|
|
dag InOperandList = (ins GPROpnd:$rs, GPROpnd:$rt);
|
|
|
|
string AsmString = !strconcat(instr_asm, "\t$rd, $rs, $rt");
|
|
|
|
list<dag> Pattern = [];
|
|
|
|
}
|
|
|
|
|
|
|
|
class SELEQZ_DESC : SELEQNE_Z_DESC_BASE<"seleqz", GPR32Opnd>;
|
|
|
|
class SELNEZ_DESC : SELEQNE_Z_DESC_BASE<"selnez", GPR32Opnd>;
|
|
|
|
|
2014-05-16 08:42:27 +00:00
|
|
|
class MADDF_S_DESC : COP1_4R_DESC_BASE<"maddf.s", FGR32Opnd>;
|
|
|
|
class MADDF_D_DESC : COP1_4R_DESC_BASE<"maddf.d", FGR64Opnd>;
|
|
|
|
class MSUBF_S_DESC : COP1_4R_DESC_BASE<"msubf.s", FGR32Opnd>;
|
|
|
|
class MSUBF_D_DESC : COP1_4R_DESC_BASE<"msubf.d", FGR64Opnd>;
|
2014-05-14 15:29:44 +00:00
|
|
|
|
2014-05-15 14:54:06 +00:00
|
|
|
class MAX_MIN_DESC_BASE<string instr_asm, RegisterOperand FGROpnd> {
|
|
|
|
dag OutOperandList = (outs FGROpnd:$fd);
|
|
|
|
dag InOperandList = (ins FGROpnd:$fs, FGROpnd:$ft);
|
|
|
|
string AsmString = !strconcat(instr_asm, "\t$fd, $fs, $ft");
|
|
|
|
list<dag> Pattern = [];
|
|
|
|
}
|
|
|
|
|
|
|
|
class MAX_S_DESC : MAX_MIN_DESC_BASE<"max.s", FGR32Opnd>;
|
|
|
|
class MAX_D_DESC : MAX_MIN_DESC_BASE<"max.d", FGR64Opnd>;
|
|
|
|
class MIN_S_DESC : MAX_MIN_DESC_BASE<"min.s", FGR32Opnd>;
|
|
|
|
class MIN_D_DESC : MAX_MIN_DESC_BASE<"min.d", FGR64Opnd>;
|
|
|
|
|
|
|
|
class MAXA_S_DESC : MAX_MIN_DESC_BASE<"maxa.s", FGR32Opnd>;
|
|
|
|
class MAXA_D_DESC : MAX_MIN_DESC_BASE<"maxa.d", FGR64Opnd>;
|
|
|
|
class MINA_S_DESC : MAX_MIN_DESC_BASE<"mina.s", FGR32Opnd>;
|
|
|
|
class MINA_D_DESC : MAX_MIN_DESC_BASE<"mina.d", FGR64Opnd>;
|
|
|
|
|
2014-05-15 14:58:42 +00:00
|
|
|
class SELEQNEZ_DESC_BASE<string instr_asm, RegisterOperand FGROpnd> {
|
|
|
|
dag OutOperandList = (outs FGROpnd:$fd);
|
|
|
|
dag InOperandList = (ins FGROpnd:$fs, FGROpnd:$ft);
|
|
|
|
string AsmString = !strconcat(instr_asm, "\t$fd, $fs, $ft");
|
|
|
|
list<dag> Pattern = [];
|
|
|
|
}
|
|
|
|
|
|
|
|
class SELEQZ_S_DESC : SELEQNEZ_DESC_BASE<"seleqz.s", FGR32Opnd>;
|
|
|
|
class SELEQZ_D_DESC : SELEQNEZ_DESC_BASE<"seleqz.d", FGR64Opnd>;
|
|
|
|
class SELNEZ_S_DESC : SELEQNEZ_DESC_BASE<"selnez.s", FGR32Opnd>;
|
|
|
|
class SELNEZ_D_DESC : SELEQNEZ_DESC_BASE<"selnez.d", FGR64Opnd>;
|
|
|
|
|
2014-05-20 14:46:24 +00:00
|
|
|
class CLASS_RINT_DESC_BASE<string instr_asm, RegisterOperand FGROpnd> {
|
|
|
|
dag OutOperandList = (outs FGROpnd:$fd);
|
|
|
|
dag InOperandList = (ins FGROpnd:$fs);
|
|
|
|
string AsmString = !strconcat(instr_asm, "\t$fd, $fs");
|
|
|
|
list<dag> Pattern = [];
|
|
|
|
}
|
|
|
|
|
|
|
|
class RINT_S_DESC : CLASS_RINT_DESC_BASE<"rint.s", FGR32Opnd>;
|
|
|
|
class RINT_D_DESC : CLASS_RINT_DESC_BASE<"rint.d", FGR64Opnd>;
|
|
|
|
class CLASS_S_DESC : CLASS_RINT_DESC_BASE<"class.s", FGR32Opnd>;
|
|
|
|
class CLASS_D_DESC : CLASS_RINT_DESC_BASE<"class.d", FGR64Opnd>;
|
|
|
|
|
2014-05-12 15:12:45 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// Instruction Definitions
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2014-05-15 10:45:58 +00:00
|
|
|
def ADDIUPC : ADDIUPC_ENC, ADDIUPC_DESC, ISA_MIPS32R6;
|
2014-05-15 12:06:36 +00:00
|
|
|
def ALIGN : ALIGN_ENC, ALIGN_DESC, ISA_MIPS32R6;
|
2014-05-15 10:45:58 +00:00
|
|
|
def ALUIPC : ALUIPC_ENC, ALUIPC_DESC, ISA_MIPS32R6;
|
2014-05-15 10:27:19 +00:00
|
|
|
def AUI : AUI_ENC, AUI_DESC, ISA_MIPS32R6;
|
2014-05-15 10:45:58 +00:00
|
|
|
def AUIPC : AUIPC_ENC, AUIPC_DESC, ISA_MIPS32R6;
|
2014-05-16 11:03:45 +00:00
|
|
|
def BALC : BALC_ENC, BALC_DESC, ISA_MIPS32R6;
|
2014-05-21 12:56:39 +00:00
|
|
|
def BC1EQZ : BC1EQZ_ENC, BC1EQZ_DESC, ISA_MIPS32R6;
|
|
|
|
def BC1NEZ : BC1NEZ_ENC, BC1NEZ_DESC, ISA_MIPS32R6;
|
|
|
|
def BC2EQZ : BC2EQZ_ENC, BC2EQZ_DESC, ISA_MIPS32R6;
|
|
|
|
def BC2NEZ : BC2NEZ_ENC, BC2NEZ_DESC, ISA_MIPS32R6;
|
2014-05-16 11:03:45 +00:00
|
|
|
def BC : BC_ENC, BC_DESC, ISA_MIPS32R6;
|
|
|
|
def BEQC : BEQC_ENC, BEQC_DESC, ISA_MIPS32R6;
|
2014-05-16 12:27:19 +00:00
|
|
|
def BEQZALC : BEQZALC_ENC, BEQZALC_DESC, ISA_MIPS32R6;
|
2014-05-16 11:03:45 +00:00
|
|
|
def BEQZC : BEQZC_ENC, BEQZC_DESC, ISA_MIPS32R6;
|
2014-05-09 09:46:21 +00:00
|
|
|
def BGEC; // Also aliased to blec with operands swapped
|
|
|
|
def BGEUC; // Also aliased to bleuc with operands swapped
|
2014-05-16 12:27:19 +00:00
|
|
|
def BGEZALC : BGEZALC_ENC, BGEZALC_DESC, ISA_MIPS32R6;
|
2014-05-16 11:03:45 +00:00
|
|
|
def BGEZC : BGEZC_ENC, BGEZC_DESC, ISA_MIPS32R6;
|
2014-05-16 12:27:19 +00:00
|
|
|
def BGTZALC : BGTZALC_ENC, BGTZALC_DESC, ISA_MIPS32R6;
|
2014-05-16 11:03:45 +00:00
|
|
|
def BGTZC : BGTZC_ENC, BGTZC_DESC, ISA_MIPS32R6;
|
2014-05-15 12:18:23 +00:00
|
|
|
def BITSWAP : BITSWAP_ENC, BITSWAP_DESC, ISA_MIPS32R6;
|
2014-05-16 12:27:19 +00:00
|
|
|
def BLEZALC : BLEZALC_ENC, BLEZALC_DESC, ISA_MIPS32R6;
|
2014-05-16 11:03:45 +00:00
|
|
|
def BLEZC : BLEZC_ENC, BLEZC_DESC, ISA_MIPS32R6;
|
2014-05-09 09:46:21 +00:00
|
|
|
def BLTC; // Also aliased to bgtc with operands swapped
|
|
|
|
def BLTUC; // Also aliased to bgtuc with operands swapped
|
2014-05-16 12:27:19 +00:00
|
|
|
def BLTZALC : BLTZALC_ENC, BLTZALC_DESC, ISA_MIPS32R6;
|
2014-05-16 11:03:45 +00:00
|
|
|
def BLTZC : BLTZC_ENC, BLTZC_DESC, ISA_MIPS32R6;
|
|
|
|
def BNEC : BNEC_ENC, BNEC_DESC, ISA_MIPS32R6;
|
2014-05-16 12:27:19 +00:00
|
|
|
def BNEZALC : BNEZALC_ENC, BNEZALC_DESC, ISA_MIPS32R6;
|
2014-05-16 11:03:45 +00:00
|
|
|
def BNEZC : BNEZC_ENC, BNEZC_DESC, ISA_MIPS32R6;
|
2014-05-22 11:23:21 +00:00
|
|
|
def BNVC : BNVC_ENC, BNVC_DESC, ISA_MIPS32R6;
|
|
|
|
def BOVC : BOVC_ENC, BOVC_DESC, ISA_MIPS32R6;
|
2014-05-15 15:16:36 +00:00
|
|
|
def CLASS_D : CLASS_D_ENC, CLASS_D_DESC, ISA_MIPS32R6;
|
|
|
|
def CLASS_S : CLASS_S_ENC, CLASS_S_DESC, ISA_MIPS32R6;
|
2014-05-16 09:48:29 +00:00
|
|
|
defm S : CMP_CC_M<FIELD_CMP_FORMAT_S, "s", FGR32Opnd>;
|
|
|
|
defm D : CMP_CC_M<FIELD_CMP_FORMAT_D, "d", FGR64Opnd>;
|
2014-05-12 15:24:16 +00:00
|
|
|
def DIV : DIV_ENC, DIV_DESC, ISA_MIPS32R6;
|
|
|
|
def DIVU : DIVU_ENC, DIVU_DESC, ISA_MIPS32R6;
|
2014-05-16 13:19:46 +00:00
|
|
|
def JIALC : JIALC_ENC, JIALC_DESC, ISA_MIPS32R6;
|
|
|
|
def JIC : JIC_ENC, JIC_DESC, ISA_MIPS32R6;
|
2014-05-09 09:46:21 +00:00
|
|
|
// def LSA; // See MSA
|
2014-05-16 10:27:10 +00:00
|
|
|
def LWPC : LWPC_ENC, LWPC_DESC, ISA_MIPS32R6;
|
|
|
|
def LWUPC : LWUPC_ENC, LWUPC_DESC, ISA_MIPS32R6;
|
2014-05-16 08:42:27 +00:00
|
|
|
def MADDF_S : MADDF_S_ENC, MADDF_S_DESC, ISA_MIPS32R6;
|
|
|
|
def MADDF_D : MADDF_D_ENC, MADDF_D_DESC, ISA_MIPS32R6;
|
2014-05-15 14:54:06 +00:00
|
|
|
def MAXA_D : MAXA_D_ENC, MAXA_D_DESC, ISA_MIPS32R6;
|
|
|
|
def MAXA_S : MAXA_S_ENC, MAXA_S_DESC, ISA_MIPS32R6;
|
|
|
|
def MAX_D : MAX_D_ENC, MAX_D_DESC, ISA_MIPS32R6;
|
|
|
|
def MAX_S : MAX_S_ENC, MAX_S_DESC, ISA_MIPS32R6;
|
|
|
|
def MINA_D : MINA_D_ENC, MINA_D_DESC, ISA_MIPS32R6;
|
|
|
|
def MINA_S : MINA_S_ENC, MINA_S_DESC, ISA_MIPS32R6;
|
|
|
|
def MIN_D : MIN_D_ENC, MIN_D_DESC, ISA_MIPS32R6;
|
|
|
|
def MIN_S : MIN_S_ENC, MIN_S_DESC, ISA_MIPS32R6;
|
2014-05-12 15:24:16 +00:00
|
|
|
def MOD : MOD_ENC, MOD_DESC, ISA_MIPS32R6;
|
|
|
|
def MODU : MODU_ENC, MODU_DESC, ISA_MIPS32R6;
|
2014-05-16 08:42:27 +00:00
|
|
|
def MSUBF_S : MSUBF_S_ENC, MSUBF_S_DESC, ISA_MIPS32R6;
|
|
|
|
def MSUBF_D : MSUBF_D_ENC, MSUBF_D_DESC, ISA_MIPS32R6;
|
2014-05-12 15:12:45 +00:00
|
|
|
def MUH : MUH_ENC, MUH_DESC, ISA_MIPS32R6;
|
|
|
|
def MUHU : MUHU_ENC, MUHU_DESC, ISA_MIPS32R6;
|
|
|
|
def MUL_R6 : MUL_R6_ENC, MUL_R6_DESC, ISA_MIPS32R6;
|
|
|
|
def MULU : MULU_ENC, MULU_DESC, ISA_MIPS32R6;
|
2014-05-09 09:46:21 +00:00
|
|
|
def NAL; // BAL with rd=0
|
2014-05-15 15:04:37 +00:00
|
|
|
def RINT_D : RINT_D_ENC, RINT_D_DESC, ISA_MIPS32R6;
|
|
|
|
def RINT_S : RINT_S_ENC, RINT_S_DESC, ISA_MIPS32R6;
|
2014-05-16 13:40:57 +00:00
|
|
|
def SELEQZ : SELEQZ_ENC, SELEQZ_DESC, ISA_MIPS32R6;
|
2014-05-15 14:58:42 +00:00
|
|
|
def SELEQZ_D : SELEQZ_D_ENC, SELEQZ_D_DESC, ISA_MIPS32R6;
|
|
|
|
def SELEQZ_S : SELEQZ_S_ENC, SELEQZ_S_DESC, ISA_MIPS32R6;
|
2014-05-16 13:40:57 +00:00
|
|
|
def SELNEZ : SELNEZ_ENC, SELNEZ_DESC, ISA_MIPS32R6;
|
2014-05-15 14:58:42 +00:00
|
|
|
def SELNEZ_D : SELNEZ_D_ENC, SELNEZ_D_DESC, ISA_MIPS32R6;
|
|
|
|
def SELNEZ_S : SELNEZ_S_ENC, SELNEZ_S_DESC, ISA_MIPS32R6;
|
2014-05-14 15:29:44 +00:00
|
|
|
def SEL_D : SEL_D_ENC, SEL_D_DESC, ISA_MIPS32R6;
|
|
|
|
def SEL_S : SEL_S_ENC, SEL_S_DESC, ISA_MIPS32R6;
|