Transfer modifications of TriDis/llvm-tricore on Sep 20, 2016

This commit is contained in:
Sidney Pontes Filho 2016-09-22 18:52:12 +02:00 • committed by billow
parent f855c92b46
commit 4bc36ec68b
7 changed files with 664 additions and 596 deletions

View file

@ -69,6 +69,9 @@ static DecodeStatus DecodeAddrRegsRegisterClass(MCInst *Inst, unsigned RegNo,
static DecodeStatus DecodeExtRegsRegisterClass(MCInst *Inst, unsigned RegNo,
uint64_t Address, void *Decoder);
static DecodeStatus DecodeSBInstruction(MCInst *Inst, unsigned Insn,
uint64_t Address, void *Decoder);
static DecodeStatus DecodeSBRInstruction(MCInst *Inst, unsigned Insn,
uint64_t Address, void *Decoder);
@ -99,7 +102,7 @@ static DecodeStatus DecodeRCInstruction(MCInst *Inst, unsigned Insn,
static DecodeStatus DecodeRCPWInstruction(MCInst *Inst, unsigned Insn,
uint64_t Address, void *Decoder);
static DecodeStatus DecodeRCLInstruction(MCInst *Inst, unsigned Insn,
static DecodeStatus DecodeRLCInstruction(MCInst *Inst, unsigned Insn,
uint64_t Address, void *Decoder);
static DecodeStatus DecodeRRInstruction(MCInst *Inst, unsigned Insn,
@ -136,7 +139,7 @@ static DecodeStatus DecodeAddrRegsRegisterClass(MCInst *Inst, unsigned RegNo,
{
unsigned Reg;
if (RegNo < 16 || RegNo > 31)
if (RegNo > 15)
return MCDisassembler_Fail;
Reg = getReg(Decoder, TriCore_AddrRegsRegClassID, RegNo);
@ -150,7 +153,7 @@ static DecodeStatus DecodeExtRegsRegisterClass(MCInst *Inst, unsigned RegNo,
{
unsigned Reg;
if (RegNo < 32 || RegNo > 39)
if (RegNo > 15)
return MCDisassembler_Fail;
Reg = getReg(Decoder, TriCore_ExtRegsRegClassID, RegNo);
@ -159,30 +162,25 @@ static DecodeStatus DecodeExtRegsRegisterClass(MCInst *Inst, unsigned RegNo,
return MCDisassembler_Success;
}
static DecodeStatus DecodeOperandRegister(MCInst *Inst, unsigned RegNo,
uint64_t Address, void *Decoder)
{
// Decode Data Register
DecodeStatus status = DecodeDataRegsRegisterClass(Inst, RegNo, Address,
Decoder);
if (status == MCDisassembler_Success)
return status;
// Decode Address Register
status = DecodeAddrRegsRegisterClass(Inst, RegNo, Address, Decoder);
if (status == MCDisassembler_Success)
return status;
// Decode Extended 64-bit Register
status = DecodeExtRegsRegisterClass(Inst, RegNo, Address, Decoder);
return status;
}
#define GET_INSTRINFO_ENUM
#include "TriCoreGenInstrInfo.inc"
static DecodeStatus DecodeSBInstruction(MCInst *Inst, unsigned Insn,
uint64_t Address, void *Decoder)
{
DecodeStatus status;
unsigned disp8 = fieldFromInstruction_4(Insn, 8, 8);
unsigned is32Bit = fieldFromInstruction_4(Insn, 0, 1);
if(is32Bit) // This instruction is 16-bit
return MCDisassembler_Fail;
// Decode disp8.
MCOperand_CreateImm0(Inst, disp8);
return MCDisassembler_Success;
}
static DecodeStatus DecodeSBRInstruction(MCInst *Inst, unsigned Insn,
uint64_t Address, void *Decoder)
{
@ -194,7 +192,7 @@ static DecodeStatus DecodeSBRInstruction(MCInst *Inst, unsigned Insn,
return MCDisassembler_Fail;
// Decode s2.
status = DecodeOperandRegister(Inst, s2, Address, Decoder);
status = DecodeDataRegsRegisterClass(Inst, s2, Address, Decoder);
if (status != MCDisassembler_Success)
return status;
@ -227,7 +225,7 @@ static DecodeStatus DecodeSRInstruction(MCInst *Inst, unsigned Insn,
return MCDisassembler_Fail;
// Decode s1/d.
status = DecodeOperandRegister(Inst, s1_d, Address, Decoder);
status = DecodeDataRegsRegisterClass(Inst, s1_d, Address, Decoder);
if (status != MCDisassembler_Success)
return status;
@ -245,14 +243,14 @@ static DecodeStatus DecodeSRCInstruction(MCInst *Inst, unsigned Insn,
if(is32Bit) // This instruction is 16-bit
return MCDisassembler_Fail;
// Decode const4.
MCOperand_CreateImm0(Inst, const4);
// Decode s1/d.
status = DecodeOperandRegister(Inst, s1_d, Address, Decoder);
status = DecodeDataRegsRegisterClass(Inst, s1_d, Address, Decoder);
if (status != MCDisassembler_Success)
return status;
// Decode const4.
MCOperand_CreateImm0(Inst, const4);
return MCDisassembler_Success;
}
@ -267,13 +265,28 @@ static DecodeStatus DecodeSRRInstruction(MCInst *Inst, unsigned Insn,
if(is32Bit) // This instruction is 16-bit
return MCDisassembler_Fail;
// Decode s2.
status = DecodeOperandRegister(Inst, s2, Address, Decoder);
// Decode s1/d.
switch(MCInst_getOpcode(Inst)) {
case TriCore_MOVAAsrr:
status = DecodeAddrRegsRegisterClass(Inst, s1_d, Address, Decoder);
break;
default:
status = DecodeDataRegsRegisterClass(Inst, s1_d, Address, Decoder);
break;
}
if (status != MCDisassembler_Success)
return status;
// Decode s1/d.
status = DecodeOperandRegister(Inst, s1_d, Address, Decoder);
// Decode s2.
switch(MCInst_getOpcode(Inst)) {
case TriCore_MOVAAsrr:
status = DecodeAddrRegsRegisterClass(Inst, s2, Address, Decoder);
break;
default:
status = DecodeDataRegsRegisterClass(Inst, s2, Address, Decoder);
break;
}
if (status != MCDisassembler_Success)
return status;
@ -314,18 +327,29 @@ static DecodeStatus DecodeBOInstruction(MCInst *Inst, unsigned Insn,
if(!is32Bit) // This instruction is 32-bit
return MCDisassembler_Fail;
// Decode off10.
MCOperand_CreateImm0(Inst, off10);
// Decode s1_d.
switch(MCInst_getOpcode(Inst)) {
case TriCore_STAbo:
status = DecodeAddrRegsRegisterClass(Inst, s1_d, Address, Decoder);
break;
case TriCore_LDDbo:
case TriCore_STDbo:
status = DecodeExtRegsRegisterClass(Inst, s1_d, Address, Decoder);
break;
default:
status = DecodeDataRegsRegisterClass(Inst, s1_d, Address, Decoder);
break;
}
if (status != MCDisassembler_Success)
return status;
// Decode s2.
status = DecodeOperandRegister(Inst, s2, Address, Decoder);
status = DecodeAddrRegsRegisterClass(Inst, s2, Address, Decoder);
if (status != MCDisassembler_Success)
return status;
// Decode s1_d.
status = DecodeOperandRegister(Inst, s1_d, Address, Decoder);
if (status != MCDisassembler_Success)
return status;
// Decode off10.
MCOperand_CreateImm0(Inst, off10);
return MCDisassembler_Success;
}
@ -347,18 +371,18 @@ static DecodeStatus DecodeBOLInstruction(MCInst *Inst, unsigned Insn,
if(!is32Bit) // This instruction is 32-bit
return MCDisassembler_Fail;
// Decode off16.
MCOperand_CreateImm0(Inst, off16);
// Decode s1_d.
status = DecodeDataRegsRegisterClass(Inst, s1_d, Address, Decoder);
if (status != MCDisassembler_Success)
return status;
// Decode s2.
status = DecodeOperandRegister(Inst, s2, Address, Decoder);
status = DecodeAddrRegsRegisterClass(Inst, s2, Address, Decoder);
if (status != MCDisassembler_Success)
return status;
// Decode s1_d.
status = DecodeOperandRegister(Inst, s1_d, Address, Decoder);
if (status != MCDisassembler_Success)
return status;
// Decode off16.
MCOperand_CreateImm0(Inst, off16);
return MCDisassembler_Success;
}
@ -377,18 +401,18 @@ static DecodeStatus DecodeRCInstruction(MCInst *Inst, unsigned Insn,
return MCDisassembler_Fail;
// Decode d.
status = DecodeOperandRegister(Inst, d, Address, Decoder);
status = DecodeDataRegsRegisterClass(Inst, d, Address, Decoder);
if (status != MCDisassembler_Success)
return status;
// Decode s1.
status = DecodeDataRegsRegisterClass(Inst, s1, Address, Decoder);
if (status != MCDisassembler_Success)
return status;
// Decode const9.
MCOperand_CreateImm0(Inst, const9);
// Decode s1.
status = DecodeOperandRegister(Inst, s1, Address, Decoder);
if (status != MCDisassembler_Success)
return status;
return MCDisassembler_Success;
}
@ -408,28 +432,28 @@ static DecodeStatus DecodeRCPWInstruction(MCInst *Inst, unsigned Insn,
return MCDisassembler_Fail;
// Decode d.
status = DecodeOperandRegister(Inst, d, Address, Decoder);
status = DecodeExtRegsRegisterClass(Inst, d, Address, Decoder);
if (status != MCDisassembler_Success)
return status;
// Decode s1.
status = DecodeDataRegsRegisterClass(Inst, s1, Address, Decoder);
if (status != MCDisassembler_Success)
return status;
// Decode const4.
MCOperand_CreateImm0(Inst, const4);
// Decode pos.
MCOperand_CreateImm0(Inst, pos);
// Decode width.
MCOperand_CreateImm0(Inst, width);
// Decode const4.
MCOperand_CreateImm0(Inst, const4);
// Decode s1.
status = DecodeOperandRegister(Inst, s1, Address, Decoder);
if (status != MCDisassembler_Success)
return status;
return MCDisassembler_Success;
}
static DecodeStatus DecodeRCLInstruction(MCInst *Inst, unsigned Insn,
static DecodeStatus DecodeRLCInstruction(MCInst *Inst, unsigned Insn,
uint64_t Address, void *Decoder)
{
DecodeStatus status;
@ -443,18 +467,18 @@ static DecodeStatus DecodeRCLInstruction(MCInst *Inst, unsigned Insn,
return MCDisassembler_Fail;
// Decode d.
status = DecodeOperandRegister(Inst, d, Address, Decoder);
status = DecodeDataRegsRegisterClass(Inst, d, Address, Decoder);
if (status != MCDisassembler_Success)
return status;
// Decode s1.
status = DecodeDataRegsRegisterClass(Inst, s1, Address, Decoder);
if (status != MCDisassembler_Success)
return status;
// Decode const16.
MCOperand_CreateImm0(Inst, const16);
// Decode s1.
status = DecodeOperandRegister(Inst, s1, Address, Decoder);
if (status != MCDisassembler_Success)
return status;
return MCDisassembler_Success;
}
@ -473,23 +497,51 @@ static DecodeStatus DecodeRRInstruction(MCInst *Inst, unsigned Insn,
return MCDisassembler_Fail;
// Decode d.
status = DecodeOperandRegister(Inst, d, Address, Decoder);
switch(MCInst_getOpcode(Inst)) {
case TriCore_ADDArr:
case TriCore_SUBArr:
case TriCore_MOVArr:
case TriCore_MOVAArr:
status = DecodeAddrRegsRegisterClass(Inst, d, Address, Decoder);
break;
default:
status = DecodeDataRegsRegisterClass(Inst, d, Address, Decoder);
break;
}
if (status != MCDisassembler_Success)
return status;
// Decode s1.
switch(MCInst_getOpcode(Inst)) {
case TriCore_ADDArr:
case TriCore_SUBArr:
status = DecodeAddrRegsRegisterClass(Inst, s1, Address, Decoder);
break;
default:
status = DecodeDataRegsRegisterClass(Inst, s1, Address, Decoder);
break;
}
if (status != MCDisassembler_Success)
return status;
// Decode s2.
switch(MCInst_getOpcode(Inst)) {
case TriCore_ADDArr:
case TriCore_SUBArr:
case TriCore_MOVDrr:
case TriCore_MOVAArr:
status = DecodeAddrRegsRegisterClass(Inst, s2, Address, Decoder);
break;
default:
status = DecodeDataRegsRegisterClass(Inst, s2, Address, Decoder);
break;
}
if (status != MCDisassembler_Success)
return status;
// Decode n.
MCOperand_CreateImm0(Inst, n);
// Decode s2.
status = DecodeOperandRegister(Inst, s2, Address, Decoder);
if (status != MCDisassembler_Success)
return status;
// Decode s1.
status = DecodeOperandRegister(Inst, s1, Address, Decoder);
if (status != MCDisassembler_Success)
return status;
return MCDisassembler_Success;
}
@ -507,17 +559,17 @@ static DecodeStatus DecodeRR2Instruction(MCInst *Inst, unsigned Insn,
return MCDisassembler_Fail;
// Decode d.
status = DecodeOperandRegister(Inst, d, Address, Decoder);
if (status != MCDisassembler_Success)
return status;
// Decode s2.
status = DecodeOperandRegister(Inst, s2, Address, Decoder);
status = DecodeDataRegsRegisterClass(Inst, d, Address, Decoder);
if (status != MCDisassembler_Success)
return status;
// Decode s1.
status = DecodeOperandRegister(Inst, s1, Address, Decoder);
status = DecodeDataRegsRegisterClass(Inst, s1, Address, Decoder);
if (status != MCDisassembler_Success)
return status;
// Decode s2.
status = DecodeDataRegsRegisterClass(Inst, s2, Address, Decoder);
if (status != MCDisassembler_Success)
return status;
@ -540,7 +592,17 @@ static DecodeStatus DecodeRRPWInstruction(MCInst *Inst, unsigned Insn,
return MCDisassembler_Fail;
// Decode d.
status = DecodeOperandRegister(Inst, d, Address, Decoder);
status = DecodeDataRegsRegisterClass(Inst, d, Address, Decoder);
if (status != MCDisassembler_Success)
return status;
// Decode s1.
status = DecodeDataRegsRegisterClass(Inst, s1, Address, Decoder);
if (status != MCDisassembler_Success)
return status;
// Decode s2.
status = DecodeDataRegsRegisterClass(Inst, s2, Address, Decoder);
if (status != MCDisassembler_Success)
return status;
@ -550,16 +612,6 @@ static DecodeStatus DecodeRRPWInstruction(MCInst *Inst, unsigned Insn,
// Decode width.
MCOperand_CreateImm0(Inst, width);
// Decode s2.
status = DecodeOperandRegister(Inst, s2, Address, Decoder);
if (status != MCDisassembler_Success)
return status;
// Decode s1.
status = DecodeOperandRegister(Inst, s1, Address, Decoder);
if (status != MCDisassembler_Success)
return status;
return MCDisassembler_Success;
}

View file

@ -29,130 +29,133 @@ static void printInstruction(MCInst *MI, SStream *O, MCRegisterInfo *MRI)
0U, // IMPLICIT_DEF
0U, // SUBREG_TO_REG
0U, // COPY_TO_REGCLASS
423U, // DBG_VALUE
444U, // DBG_VALUE
0U, // REG_SEQUENCE
0U, // COPY
416U, // BUNDLE
450U, // LIFETIME_START
403U, // LIFETIME_END
437U, // BUNDLE
471U, // LIFETIME_START
424U, // LIFETIME_END
0U, // STACKMAP
0U, // PATCHPOINT
0U, // LOAD_STACK_GUARD
0U, // STATEPOINT
0U, // LOCAL_ESCAPE
0U, // FAULTING_LOAD_OP
1305U, // ABS
132176U, // ADDArr
656521U, // ADDCrc
132233U, // ADDCrr
132313U, // ADDIrlc
656772U, // ADDXrc
132484U, // ADDXrr
495U, // ADDi64
509U, // ADDi64C
132258U, // ADDrc
132258U, // ADDrr
17570U, // ADDsrc
33954U, // ADDsrr
9251U, // ADJCALLSTACKDOWN
9271U, // ADJCALLSTACKUP
263412U, // ANDNrc
465U, // ANDNrc64
1213695U, // AND_EQrc
1737983U, // AND_EQrr
2262322U, // AND_GEUrc
1738034U, // AND_GE_Urr
1213613U, // AND_GErc
2262341U, // AND_LTUrc
1738053U, // AND_LT_Urr
1213726U, // AND_LTrc
2753704U, // ANDrc
465U, // ANDrc64
132264U, // ANDrr
1326U, // ABS
132197U, // ADDArr
394398U, // ADDCrc
132254U, // ADDCrr
132334U, // ADDIrlc
394649U, // ADDXrc
132505U, // ADDXrr
516U, // ADDi64
530U, // ADDi64C
132279U, // ADDrc
132279U, // ADDrr
17591U, // ADDsrc
33975U, // ADDsrr
9272U, // ADJCALLSTACKDOWN
9292U, // ADJCALLSTACKUP
132361U, // ANDNrc
486U, // ANDNrc64
689428U, // AND_EQrc
951572U, // AND_EQrr
1213767U, // AND_GEUrc
951623U, // AND_GE_Urr
689346U, // AND_GErc
1213786U, // AND_LTUrc
951642U, // AND_LT_Urr
689459U, // AND_LTrc
1443005U, // ANDrc
486U, // ANDrc64
132285U, // ANDrr
2062U, // ANDsc
33960U, // ANDsrr
465U, // ANDsrr64
9449U, // CALLb
4326674U, // DEXTRrrpw
656643U, // EQrc
132355U, // EQrr
4326675U, // EXTRrrpw
656561U, // GErc
132273U, // GErr
50402U, // IMASKrcpw
3470U, // JNZsbr
3466U, // JZsbr
4319U, // Jb
66911U, // LDBUbo
66673U, // LDBbo
66703U, // LDDbo
66918U, // LDHUbo
66755U, // LDHbo
66930U, // LDWbo
656674U, // LTrc
132386U, // LTrr
1124U, // MOVAArr
1124U, // MOVAAsrr
1117U, // MOVArr
1179U, // MOVDrr
1235U, // MOVHrlc
83288U, // MOVUrlc
465U, // MOVi32
99693U, // MOVrlc
1389U, // MOVrr
116077U, // MOVsrc
656623U, // MULrc
132335U, // MULrr2
34031U, // MULsrr
2753703U, // NANDrc
132263U, // NANDrr
656575U, // NErc
132287U, // NErr
2753800U, // NORrc
132360U, // NORrr
465U, // NOTrr64
9517U, // NOTsr
263418U, // ORNrc
465U, // ORNrc64
2262332U, // OR_GEUrc
1213621U, // OR_GErc
1737909U, // OR_GErr
2262351U, // OR_LTUrc
1213734U, // OR_LTrc
1738022U, // OR_LTrr
1213628U, // OR_NErc
1737916U, // OR_NErr
2753801U, // ORrc
465U, // ORrc64
132361U, // ORrr
33981U, // ANDsrr
486U, // ANDsrr64
9470U, // CALLb
2229543U, // DEXTRrrpw
394520U, // EQrc
132376U, // EQrr
2229544U, // EXTRrrpw
394438U, // GErc
132294U, // GErr
50423U, // IMASKrcpw
3117U, // JNZsb
4515U, // JNZsbr
3107U, // JZsb
4511U, // JZsbr
3316U, // Jb
66932U, // LDBUbo
66694U, // LDBbo
66724U, // LDDbo
66939U, // LDHUbo
66776U, // LDHbo
66951U, // LDWbo
66951U, // LDWbol
394551U, // LTrc
132407U, // LTrr
1145U, // MOVAArr
1145U, // MOVAAsrr
1138U, // MOVArr
1200U, // MOVDrr
1256U, // MOVHrlc
83309U, // MOVUrlc
486U, // MOVi32
99714U, // MOVrlc
1410U, // MOVrr
116098U, // MOVsrc
394500U, // MULrc
132356U, // MULrr2
34052U, // MULsrr
1443004U, // NANDrc
132284U, // NANDrr
394452U, // NErc
132308U, // NErr
1443101U, // NORrc
132381U, // NORrr
486U, // NOTrr64
9538U, // NOTsr
132367U, // ORNrc
486U, // ORNrc64
1213777U, // OR_GEUrc
689354U, // OR_GErc
951498U, // OR_GErr
1213796U, // OR_LTUrc
689467U, // OR_LTrc
951611U, // OR_LTrr
689361U, // OR_NErc
951505U, // OR_NErr
1443102U, // ORrc
486U, // ORrc64
132382U, // ORrr
2073U, // ORsc
34057U, // ORsrr
465U, // ORsrr64
524U, // RET
656509U, // RSUBrc
9341U, // RSUBsr
656492U, // SHArc
132204U, // SHArr
656591U, // SHrc
132303U, // SHrr
5207U, // STAbo
5239U, // STBbo
5269U, // STDbo
5321U, // STHbo
5496U, // STWbo
132169U, // SUBArr
34078U, // ORsrr
486U, // ORsrr64
545U, // RET
394386U, // RSUBrc
9362U, // RSUBsr
394369U, // SHArc
132225U, // SHArr
394468U, // SHrc
132324U, // SHrr
5228U, // STAbo
5260U, // STBbo
5290U, // STDbo
5342U, // STHbo
5517U, // STWbo
132190U, // SUBArr
2049U, // SUBAsc
132227U, // SUBCrr
132478U, // SUBXrr
481U, // SUBi64
433U, // Select8
263431U, // XNORrc
2753805U, // XORrc
465U, // XORrc64
465U, // XORrcneg64
132365U, // XORrr
132365U, // XORsrr
465U, // XORsrr64
132248U, // SUBCrr
132499U, // SUBXrr
502U, // SUBi64
454U, // Select8
132380U, // XNORrc
1443106U, // XORrc
486U, // XORrc64
486U, // XORrcneg64
132386U, // XORrr
132386U, // XORsrr
486U, // XORsrr64
0U
};
@ -160,70 +163,72 @@ static void printInstruction(MCInst *MI, SStream *O, MCRegisterInfo *MRI)
/* 0 */ 's', 'u', 'b', '.', 'a', 32, '%', 'a', '1', '0', ',', 32, 0,
/* 13 */ 'a', 'n', 'd', 32, '%', 'd', '1', '5', ',', 32, 0,
/* 24 */ 'o', 'r', 32, '%', 'd', '1', '5', ',', 32, 0,
/* 34 */ '#', 32, 'A', 'D', 'J', 'C', 'A', 'L', 'L', 'S', 'T', 'A', 'C', 'K', 'D', 'O', 'W', 'N', 32, 0,
/* 54 */ '#', 32, 'A', 'D', 'J', 'C', 'A', 'L', 'L', 'S', 'T', 'A', 'C', 'K', 'U', 'P', 32, 0,
/* 72 */ 's', 'u', 'b', '.', 'a', 32, 0,
/* 79 */ 'a', 'd', 'd', '.', 'a', 32, 0,
/* 86 */ 's', 't', '.', 'a', 32, 0,
/* 92 */ 'm', 'o', 'v', '.', 'a', 32, 0,
/* 99 */ 'm', 'o', 'v', '.', 'a', 'a', 32, 0,
/* 107 */ 's', 'h', 'a', 32, 0,
/* 112 */ 'l', 'd', '.', 'b', 32, 0,
/* 118 */ 's', 't', '.', 'b', 32, 0,
/* 124 */ 'r', 's', 'u', 'b', 32, 0,
/* 130 */ 's', 'u', 'b', 'c', 32, 0,
/* 136 */ 'a', 'd', 'd', 'c', 32, 0,
/* 142 */ 'l', 'd', '.', 'd', 32, 0,
/* 148 */ 's', 't', '.', 'd', 32, 0,
/* 154 */ 'm', 'o', 'v', '.', 'd', 32, 0,
/* 161 */ 'a', 'd', 'd', 32, 0,
/* 166 */ 'n', 'a', 'n', 'd', 32, 0,
/* 172 */ 'a', 'n', 'd', '.', 'g', 'e', 32, 0,
/* 180 */ 'o', 'r', '.', 'g', 'e', 32, 0,
/* 187 */ 'o', 'r', '.', 'n', 'e', 32, 0,
/* 194 */ 'l', 'd', '.', 'h', 32, 0,
/* 200 */ 's', 't', '.', 'h', 32, 0,
/* 206 */ 's', 'h', 32, 0,
/* 210 */ 'm', 'o', 'v', 'h', 32, 0,
/* 216 */ 'a', 'd', 'd', 'i', 32, 0,
/* 222 */ 'j', 32, 0,
/* 225 */ 'i', 'm', 'a', 's', 'k', 32, 0,
/* 232 */ 'c', 'a', 'l', 'l', 32, 0,
/* 238 */ 'm', 'u', 'l', 32, 0,
/* 243 */ 'a', 'n', 'd', 'n', 32, 0,
/* 249 */ 'o', 'r', 'n', 32, 0,
/* 254 */ 'a', 'n', 'd', '.', 'e', 'q', 32, 0,
/* 262 */ 'x', 'n', 'o', 'r', 32, 0,
/* 268 */ 'x', 'o', 'r', 32, 0,
/* 273 */ 'd', 'e', 'x', 't', 'r', 32, 0,
/* 280 */ 'a', 'b', 's', 32, 0,
/* 285 */ 'a', 'n', 'd', '.', 'l', 't', 32, 0,
/* 293 */ 'o', 'r', '.', 'l', 't', 32, 0,
/* 300 */ 'n', 'o', 't', 32, 0,
/* 305 */ 'a', 'n', 'd', '.', 'g', 'e', '.', 'u', 32, 0,
/* 315 */ 'o', 'r', '.', 'g', 'e', '.', 'u', 32, 0,
/* 324 */ 'a', 'n', 'd', '.', 'l', 't', '.', 'u', 32, 0,
/* 334 */ 'o', 'r', '.', 'l', 't', '.', 'u', 32, 0,
/* 343 */ 'm', 'o', 'v', '.', 'u', 32, 0,
/* 350 */ 'l', 'd', '.', 'b', 'u', 32, 0,
/* 357 */ 'l', 'd', '.', 'h', 'u', 32, 0,
/* 364 */ 'm', 'o', 'v', 32, 0,
/* 369 */ 'l', 'd', '.', 'w', 32, 0,
/* 375 */ 's', 't', '.', 'w', 32, 0,
/* 381 */ 's', 'u', 'b', 'x', 32, 0,
/* 387 */ 'a', 'd', 'd', 'x', 32, 0,
/* 393 */ 'j', 'z', 32, 0,
/* 397 */ 'j', 'n', 'z', 32, 0,
/* 402 */ 'L', 'I', 'F', 'E', 'T', 'I', 'M', 'E', '_', 'E', 'N', 'D', 0,
/* 415 */ 'B', 'U', 'N', 'D', 'L', 'E', 0,
/* 422 */ 'D', 'B', 'G', '_', 'V', 'A', 'L', 'U', 'E', 0,
/* 432 */ '#', 32, 'S', 'e', 'l', 'e', 'c', 't', '8', 32, 'P', 'S', 'E', 'U', 'D', 'O', 0,
/* 449 */ 'L', 'I', 'F', 'E', 'T', 'I', 'M', 'E', '_', 'S', 'T', 'A', 'R', 'T', 0,
/* 464 */ '#', '#', 'N', 'A', 'M', 'E', '#', '#', 32, 'P', 's', 'e', 'u', 'd', 'o', 0,
/* 480 */ 'S', 'U', 'B', 'i', '6', '4', 32, 'P', 's', 'e', 'u', 'd', 'o', 0,
/* 494 */ 'A', 'D', 'D', 'i', '6', '4', 32, 'P', 's', 'e', 'u', 'd', 'o', 0,
/* 508 */ 'A', 'D', 'D', 'i', '6', '4', 'C', 32, 'P', 's', 'e', 'u', 'd', 'o', 0,
/* 523 */ 'r', 'e', 't', 0,
/* 34 */ 'j', 'z', 32, '%', 'd', '1', '5', ',', 32, 0,
/* 44 */ 'j', 'n', 'z', 32, '%', 'd', '1', '5', ',', 32, 0,
/* 55 */ '#', 32, 'A', 'D', 'J', 'C', 'A', 'L', 'L', 'S', 'T', 'A', 'C', 'K', 'D', 'O', 'W', 'N', 32, 0,
/* 75 */ '#', 32, 'A', 'D', 'J', 'C', 'A', 'L', 'L', 'S', 'T', 'A', 'C', 'K', 'U', 'P', 32, 0,
/* 93 */ 's', 'u', 'b', '.', 'a', 32, 0,
/* 100 */ 'a', 'd', 'd', '.', 'a', 32, 0,
/* 107 */ 's', 't', '.', 'a', 32, 0,
/* 113 */ 'm', 'o', 'v', '.', 'a', 32, 0,
/* 120 */ 'm', 'o', 'v', '.', 'a', 'a', 32, 0,
/* 128 */ 's', 'h', 'a', 32, 0,
/* 133 */ 'l', 'd', '.', 'b', 32, 0,
/* 139 */ 's', 't', '.', 'b', 32, 0,
/* 145 */ 'r', 's', 'u', 'b', 32, 0,
/* 151 */ 's', 'u', 'b', 'c', 32, 0,
/* 157 */ 'a', 'd', 'd', 'c', 32, 0,
/* 163 */ 'l', 'd', '.', 'd', 32, 0,
/* 169 */ 's', 't', '.', 'd', 32, 0,
/* 175 */ 'm', 'o', 'v', '.', 'd', 32, 0,
/* 182 */ 'a', 'd', 'd', 32, 0,
/* 187 */ 'n', 'a', 'n', 'd', 32, 0,
/* 193 */ 'a', 'n', 'd', '.', 'g', 'e', 32, 0,
/* 201 */ 'o', 'r', '.', 'g', 'e', 32, 0,
/* 208 */ 'o', 'r', '.', 'n', 'e', 32, 0,
/* 215 */ 'l', 'd', '.', 'h', 32, 0,
/* 221 */ 's', 't', '.', 'h', 32, 0,
/* 227 */ 's', 'h', 32, 0,
/* 231 */ 'm', 'o', 'v', 'h', 32, 0,
/* 237 */ 'a', 'd', 'd', 'i', 32, 0,
/* 243 */ 'j', 32, 0,
/* 246 */ 'i', 'm', 'a', 's', 'k', 32, 0,
/* 253 */ 'c', 'a', 'l', 'l', 32, 0,
/* 259 */ 'm', 'u', 'l', 32, 0,
/* 264 */ 'a', 'n', 'd', 'n', 32, 0,
/* 270 */ 'o', 'r', 'n', 32, 0,
/* 275 */ 'a', 'n', 'd', '.', 'e', 'q', 32, 0,
/* 283 */ 'x', 'n', 'o', 'r', 32, 0,
/* 289 */ 'x', 'o', 'r', 32, 0,
/* 294 */ 'd', 'e', 'x', 't', 'r', 32, 0,
/* 301 */ 'a', 'b', 's', 32, 0,
/* 306 */ 'a', 'n', 'd', '.', 'l', 't', 32, 0,
/* 314 */ 'o', 'r', '.', 'l', 't', 32, 0,
/* 321 */ 'n', 'o', 't', 32, 0,
/* 326 */ 'a', 'n', 'd', '.', 'g', 'e', '.', 'u', 32, 0,
/* 336 */ 'o', 'r', '.', 'g', 'e', '.', 'u', 32, 0,
/* 345 */ 'a', 'n', 'd', '.', 'l', 't', '.', 'u', 32, 0,
/* 355 */ 'o', 'r', '.', 'l', 't', '.', 'u', 32, 0,
/* 364 */ 'm', 'o', 'v', '.', 'u', 32, 0,
/* 371 */ 'l', 'd', '.', 'b', 'u', 32, 0,
/* 378 */ 'l', 'd', '.', 'h', 'u', 32, 0,
/* 385 */ 'm', 'o', 'v', 32, 0,
/* 390 */ 'l', 'd', '.', 'w', 32, 0,
/* 396 */ 's', 't', '.', 'w', 32, 0,
/* 402 */ 's', 'u', 'b', 'x', 32, 0,
/* 408 */ 'a', 'd', 'd', 'x', 32, 0,
/* 414 */ 'j', 'z', 32, 0,
/* 418 */ 'j', 'n', 'z', 32, 0,
/* 423 */ 'L', 'I', 'F', 'E', 'T', 'I', 'M', 'E', '_', 'E', 'N', 'D', 0,
/* 436 */ 'B', 'U', 'N', 'D', 'L', 'E', 0,
/* 443 */ 'D', 'B', 'G', '_', 'V', 'A', 'L', 'U', 'E', 0,
/* 453 */ '#', 32, 'S', 'e', 'l', 'e', 'c', 't', '8', 32, 'P', 'S', 'E', 'U', 'D', 'O', 0,
/* 470 */ 'L', 'I', 'F', 'E', 'T', 'I', 'M', 'E', '_', 'S', 'T', 'A', 'R', 'T', 0,
/* 485 */ '#', '#', 'N', 'A', 'M', 'E', '#', '#', 32, 'P', 's', 'e', 'u', 'd', 'o', 0,
/* 501 */ 'S', 'U', 'B', 'i', '6', '4', 32, 'P', 's', 'e', 'u', 'd', 'o', 0,
/* 515 */ 'A', 'D', 'D', 'i', '6', '4', 32, 'P', 's', 'e', 'u', 'd', 'o', 0,
/* 529 */ 'A', 'D', 'D', 'i', '6', '4', 'C', 32, 'P', 's', 'e', 'u', 'd', 'o', 0,
/* 544 */ 'r', 'e', 't', 0,
};
// Emit the opcode for the instruction.
@ -255,14 +260,14 @@ static void printInstruction(MCInst *MI, SStream *O, MCRegisterInfo *MRI)
return;
break;
case 3:
// JNZsbr, JZsbr
printOperand(MI, 1, O);
SStream_concat0(O, ", ");
// JNZsb, JZsb, Jb
printPCRelImmOperand(MI, 0, O);
return;
break;
case 4:
// Jb
// JNZsbr, JZsbr
printOperand(MI, 1, O);
SStream_concat0(O, ", ");
printPCRelImmOperand(MI, 0, O);
return;
break;
@ -312,7 +317,7 @@ static void printInstruction(MCInst *MI, SStream *O, MCRegisterInfo *MRI)
return;
break;
case 4:
// LDBUbo, LDBbo, LDDbo, LDHUbo, LDHbo, LDWbo
// LDBUbo, LDBbo, LDDbo, LDHUbo, LDHbo, LDWbo, LDWbol
printAddrModeMemSrc(MI, 1, O);
return;
break;
@ -334,32 +339,21 @@ static void printInstruction(MCInst *MI, SStream *O, MCRegisterInfo *MRI)
}
// Fragment 3 encoded into 2 bits for 3 unique commands.
switch ((Bits >> 17) & 3) {
default: // unreachable.
case 0:
// Fragment 3 encoded into 1 bits for 2 unique commands.
if ((Bits >> 17) & 1) {
// ADDArr, ADDCrc, ADDCrr, ADDIrlc, ADDXrc, ADDXrr, ADDrc, ADDrr, ANDNrc,...
SStream_concat0(O, ", ");
} else {
// ABS, ADDsrr, ANDsrr, MOVAArr, MOVAAsrr, MOVArr, MOVDrr, MOVHrlc, MOVrr...
return;
break;
case 1:
// ADDArr, ADDCrc, ADDCrr, ADDIrlc, ADDXrc, ADDXrr, ADDrc, ADDrr, AND_EQr...
SStream_concat0(O, ", ");
break;
case 2:
// ANDNrc, ORNrc, XNORrc
SStream_concat0(O, ", ~(");
printOperand(MI, 2, O);
SStream_concat0(O, ")");
return;
break;
}
// Fragment 4 encoded into 3 bits for 6 unique commands.
switch ((Bits >> 19) & 7) {
switch ((Bits >> 18) & 7) {
default: // unreachable.
case 0:
// ADDArr, ADDCrr, ADDIrlc, ADDXrr, ADDrc, ADDrr, ANDrr, DEXTRrrpw, EQrr,...
// ADDArr, ADDCrr, ADDIrlc, ADDXrr, ADDrc, ADDrr, ANDNrc, ANDrr, DEXTRrrp...
printOperand(MI, 2, O);
break;
case 1:
@ -391,13 +385,13 @@ static void printInstruction(MCInst *MI, SStream *O, MCRegisterInfo *MRI)
// Fragment 5 encoded into 1 bits for 2 unique commands.
if ((Bits >> 22) & 1) {
if ((Bits >> 21) & 1) {
// DEXTRrrpw, EXTRrrpw
SStream_concat0(O, ", ");
printOperand(MI, 3, O);
return;
} else {
// ADDArr, ADDCrr, ADDIrlc, ADDXrr, ADDrc, ADDrr, ANDrr, EQrr, GErr, LTrr...
// ADDArr, ADDCrr, ADDIrlc, ADDXrr, ADDrc, ADDrr, ANDNrc, ANDrr, EQrr, GE...
return;
}
@ -409,7 +403,7 @@ static void printInstruction(MCInst *MI, SStream *O, MCRegisterInfo *MRI)
/// for the specified register.
static char *getRegisterName(unsigned RegNo)
{
// assert(RegNo && RegNo < 17 && "Invalid register number!");
// assert(RegNo && RegNo < 45 && "Invalid register number!");
#ifndef CAPSTONE_DIET
static char AsmStrs[] = {

View file

@ -29,34 +29,38 @@ static uint8_t DecoderTable16[] = {
/* 3 */ MCD_OPC_FilterValue, 22, 3, 0, // Skip to: 10
/* 7 */ MCD_OPC_Decode, 51, 0, // Opcode: ANDsc
/* 10 */ MCD_OPC_FilterValue, 32, 3, 0, // Skip to: 17
/* 14 */ MCD_OPC_Decode, 123, 0, // Opcode: SUBAsc
/* 14 */ MCD_OPC_Decode, 126, 0, // Opcode: SUBAsc
/* 17 */ MCD_OPC_FilterValue, 38, 3, 0, // Skip to: 24
/* 21 */ MCD_OPC_Decode, 52, 1, // Opcode: ANDsrr
/* 24 */ MCD_OPC_FilterValue, 50, 3, 0, // Skip to: 31
/* 28 */ MCD_OPC_Decode, 112, 2, // Opcode: RSUBsr
/* 28 */ MCD_OPC_Decode, 115, 2, // Opcode: RSUBsr
/* 31 */ MCD_OPC_FilterValue, 64, 3, 0, // Skip to: 38
/* 35 */ MCD_OPC_Decode, 74, 1, // Opcode: MOVAAsrr
/* 35 */ MCD_OPC_Decode, 77, 1, // Opcode: MOVAAsrr
/* 38 */ MCD_OPC_FilterValue, 66, 3, 0, // Skip to: 45
/* 42 */ MCD_OPC_Decode, 35, 1, // Opcode: ADDsrr
/* 45 */ MCD_OPC_FilterValue, 70, 3, 0, // Skip to: 52
/* 49 */ MCD_OPC_Decode, 93, 2, // Opcode: NOTsr
/* 52 */ MCD_OPC_FilterValue, 118, 3, 0, // Skip to: 59
/* 56 */ MCD_OPC_Decode, 63, 3, // Opcode: JZsbr
/* 59 */ MCD_OPC_FilterValue, 130, 1, 3, 0, // Skip to: 67
/* 64 */ MCD_OPC_Decode, 82, 4, // Opcode: MOVsrc
/* 67 */ MCD_OPC_FilterValue, 150, 1, 3, 0, // Skip to: 75
/* 72 */ MCD_OPC_Decode, 107, 0, // Opcode: ORsc
/* 75 */ MCD_OPC_FilterValue, 166, 1, 3, 0, // Skip to: 83
/* 80 */ MCD_OPC_Decode, 108, 1, // Opcode: ORsrr
/* 83 */ MCD_OPC_FilterValue, 194, 1, 3, 0, // Skip to: 91
/* 88 */ MCD_OPC_Decode, 34, 4, // Opcode: ADDsrc
/* 91 */ MCD_OPC_FilterValue, 198, 1, 4, 0, // Skip to: 100
/* 96 */ MCD_OPC_Decode, 133, 1, 1, // Opcode: XORsrr
/* 100 */ MCD_OPC_FilterValue, 226, 1, 3, 0, // Skip to: 108
/* 105 */ MCD_OPC_Decode, 85, 1, // Opcode: MULsrr
/* 108 */ MCD_OPC_FilterValue, 246, 1, 3, 0, // Skip to: 116
/* 113 */ MCD_OPC_Decode, 62, 3, // Opcode: JNZsbr
/* 116 */ MCD_OPC_Fail,
/* 49 */ MCD_OPC_Decode, 96, 2, // Opcode: NOTsr
/* 52 */ MCD_OPC_FilterValue, 110, 3, 0, // Skip to: 59
/* 56 */ MCD_OPC_Decode, 64, 3, // Opcode: JZsb
/* 59 */ MCD_OPC_FilterValue, 118, 3, 0, // Skip to: 66
/* 63 */ MCD_OPC_Decode, 65, 4, // Opcode: JZsbr
/* 66 */ MCD_OPC_FilterValue, 130, 1, 3, 0, // Skip to: 74
/* 71 */ MCD_OPC_Decode, 85, 5, // Opcode: MOVsrc
/* 74 */ MCD_OPC_FilterValue, 150, 1, 3, 0, // Skip to: 82
/* 79 */ MCD_OPC_Decode, 110, 0, // Opcode: ORsc
/* 82 */ MCD_OPC_FilterValue, 166, 1, 3, 0, // Skip to: 90
/* 87 */ MCD_OPC_Decode, 111, 1, // Opcode: ORsrr
/* 90 */ MCD_OPC_FilterValue, 194, 1, 3, 0, // Skip to: 98
/* 95 */ MCD_OPC_Decode, 34, 5, // Opcode: ADDsrc
/* 98 */ MCD_OPC_FilterValue, 198, 1, 4, 0, // Skip to: 107
/* 103 */ MCD_OPC_Decode, 136, 1, 1, // Opcode: XORsrr
/* 107 */ MCD_OPC_FilterValue, 226, 1, 3, 0, // Skip to: 115
/* 112 */ MCD_OPC_Decode, 88, 1, // Opcode: MULsrr
/* 115 */ MCD_OPC_FilterValue, 238, 1, 3, 0, // Skip to: 123
/* 120 */ MCD_OPC_Decode, 62, 3, // Opcode: JNZsb
/* 123 */ MCD_OPC_FilterValue, 246, 1, 3, 0, // Skip to: 131
/* 128 */ MCD_OPC_Decode, 63, 4, // Opcode: JNZsbr
/* 131 */ MCD_OPC_Fail,
0
};
@ -65,198 +69,200 @@ static uint8_t DecoderTable32[] = {
/* 3 */ MCD_OPC_FilterValue, 1, 40, 0, // Skip to: 47
/* 7 */ MCD_OPC_ExtractField, 18, 10, // Inst{27-18} ...
/* 10 */ MCD_OPC_FilterValue, 0, 3, 0, // Skip to: 17
/* 14 */ MCD_OPC_Decode, 73, 5, // Opcode: MOVAArr
/* 14 */ MCD_OPC_Decode, 76, 6, // Opcode: MOVAArr
/* 17 */ MCD_OPC_FilterValue, 4, 3, 0, // Skip to: 24
/* 21 */ MCD_OPC_Decode, 24, 5, // Opcode: ADDArr
/* 21 */ MCD_OPC_Decode, 24, 6, // Opcode: ADDArr
/* 24 */ MCD_OPC_FilterValue, 8, 3, 0, // Skip to: 31
/* 28 */ MCD_OPC_Decode, 122, 5, // Opcode: SUBArr
/* 28 */ MCD_OPC_Decode, 125, 6, // Opcode: SUBArr
/* 31 */ MCD_OPC_FilterValue, 176, 2, 3, 0, // Skip to: 39
/* 36 */ MCD_OPC_Decode, 76, 5, // Opcode: MOVDrr
/* 39 */ MCD_OPC_FilterValue, 140, 3, 171, 2, // Skip to: 727
/* 44 */ MCD_OPC_Decode, 75, 5, // Opcode: MOVArr
/* 47 */ MCD_OPC_FilterValue, 9, 38, 0, // Skip to: 89
/* 36 */ MCD_OPC_Decode, 79, 6, // Opcode: MOVDrr
/* 39 */ MCD_OPC_FilterValue, 140, 3, 179, 2, // Skip to: 735
/* 44 */ MCD_OPC_Decode, 78, 6, // Opcode: MOVArr
/* 47 */ MCD_OPC_FilterValue, 9, 45, 0, // Skip to: 96
/* 51 */ MCD_OPC_ExtractField, 22, 6, // Inst{27-22} ...
/* 54 */ MCD_OPC_FilterValue, 32, 3, 0, // Skip to: 61
/* 58 */ MCD_OPC_Decode, 66, 6, // Opcode: LDBbo
/* 58 */ MCD_OPC_Decode, 68, 7, // Opcode: LDBbo
/* 61 */ MCD_OPC_FilterValue, 33, 3, 0, // Skip to: 68
/* 65 */ MCD_OPC_Decode, 65, 6, // Opcode: LDBUbo
/* 65 */ MCD_OPC_Decode, 67, 7, // Opcode: LDBUbo
/* 68 */ MCD_OPC_FilterValue, 34, 3, 0, // Skip to: 75
/* 72 */ MCD_OPC_Decode, 69, 6, // Opcode: LDHbo
/* 72 */ MCD_OPC_Decode, 71, 7, // Opcode: LDHbo
/* 75 */ MCD_OPC_FilterValue, 35, 3, 0, // Skip to: 82
/* 79 */ MCD_OPC_Decode, 68, 6, // Opcode: LDHUbo
/* 82 */ MCD_OPC_FilterValue, 37, 129, 2, // Skip to: 727
/* 86 */ MCD_OPC_Decode, 67, 6, // Opcode: LDDbo
/* 89 */ MCD_OPC_FilterValue, 11, 211, 0, // Skip to: 304
/* 93 */ MCD_OPC_ExtractField, 21, 7, // Inst{27-21} ...
/* 96 */ MCD_OPC_FilterValue, 0, 9, 0, // Skip to: 109
/* 100 */ MCD_OPC_CheckField, 18, 3, 0, 109, 2, // Skip to: 727
/* 106 */ MCD_OPC_Decode, 33, 5, // Opcode: ADDrr
/* 109 */ MCD_OPC_FilterValue, 2, 17, 0, // Skip to: 130
/* 113 */ MCD_OPC_ExtractField, 18, 3, // Inst{20-18} ...
/* 116 */ MCD_OPC_FilterValue, 0, 3, 0, // Skip to: 123
/* 120 */ MCD_OPC_Decode, 29, 5, // Opcode: ADDXrr
/* 123 */ MCD_OPC_FilterValue, 4, 88, 2, // Skip to: 727
/* 127 */ MCD_OPC_Decode, 26, 5, // Opcode: ADDCrr
/* 130 */ MCD_OPC_FilterValue, 4, 3, 0, // Skip to: 137
/* 134 */ MCD_OPC_Decode, 28, 7, // Opcode: ADDXrc
/* 137 */ MCD_OPC_FilterValue, 6, 17, 0, // Skip to: 158
/* 141 */ MCD_OPC_ExtractField, 18, 3, // Inst{20-18} ...
/* 144 */ MCD_OPC_FilterValue, 0, 3, 0, // Skip to: 151
/* 148 */ MCD_OPC_Decode, 125, 5, // Opcode: SUBXrr
/* 151 */ MCD_OPC_FilterValue, 4, 60, 2, // Skip to: 727
/* 155 */ MCD_OPC_Decode, 124, 5, // Opcode: SUBCrr
/* 158 */ MCD_OPC_FilterValue, 8, 17, 0, // Skip to: 179
/* 162 */ MCD_OPC_ExtractField, 18, 3, // Inst{20-18} ...
/* 165 */ MCD_OPC_FilterValue, 0, 3, 0, // Skip to: 172
/* 169 */ MCD_OPC_Decode, 57, 5, // Opcode: EQrr
/* 172 */ MCD_OPC_FilterValue, 4, 39, 2, // Skip to: 727
/* 176 */ MCD_OPC_Decode, 89, 5, // Opcode: NErr
/* 179 */ MCD_OPC_FilterValue, 9, 9, 0, // Skip to: 192
/* 183 */ MCD_OPC_CheckField, 18, 3, 0, 26, 2, // Skip to: 727
/* 189 */ MCD_OPC_Decode, 72, 5, // Opcode: LTrr
/* 192 */ MCD_OPC_FilterValue, 10, 9, 0, // Skip to: 205
/* 196 */ MCD_OPC_CheckField, 18, 3, 0, 13, 2, // Skip to: 727
/* 202 */ MCD_OPC_Decode, 60, 5, // Opcode: GErr
/* 205 */ MCD_OPC_FilterValue, 14, 9, 0, // Skip to: 218
/* 209 */ MCD_OPC_CheckField, 18, 3, 0, 0, 2, // Skip to: 727
/* 215 */ MCD_OPC_Decode, 23, 5, // Opcode: ABS
/* 218 */ MCD_OPC_FilterValue, 15, 9, 0, // Skip to: 231
/* 222 */ MCD_OPC_CheckField, 18, 3, 4, 243, 1, // Skip to: 727
/* 228 */ MCD_OPC_Decode, 81, 5, // Opcode: MOVrr
/* 231 */ MCD_OPC_FilterValue, 16, 9, 0, // Skip to: 244
/* 235 */ MCD_OPC_CheckField, 18, 3, 0, 230, 1, // Skip to: 727
/* 241 */ MCD_OPC_Decode, 41, 5, // Opcode: AND_EQrr
/* 244 */ MCD_OPC_FilterValue, 17, 9, 0, // Skip to: 257
/* 248 */ MCD_OPC_CheckField, 18, 3, 4, 217, 1, // Skip to: 727
/* 254 */ MCD_OPC_Decode, 46, 5, // Opcode: AND_LT_Urr
/* 257 */ MCD_OPC_FilterValue, 18, 9, 0, // Skip to: 270
/* 261 */ MCD_OPC_CheckField, 18, 3, 4, 204, 1, // Skip to: 727
/* 267 */ MCD_OPC_Decode, 43, 5, // Opcode: AND_GE_Urr
/* 270 */ MCD_OPC_FilterValue, 20, 17, 0, // Skip to: 291
/* 274 */ MCD_OPC_ExtractField, 18, 3, // Inst{20-18} ...
/* 277 */ MCD_OPC_FilterValue, 0, 3, 0, // Skip to: 284
/* 281 */ MCD_OPC_Decode, 103, 5, // Opcode: OR_NErr
/* 284 */ MCD_OPC_FilterValue, 4, 183, 1, // Skip to: 727
/* 288 */ MCD_OPC_Decode, 101, 5, // Opcode: OR_LTrr
/* 291 */ MCD_OPC_FilterValue, 21, 176, 1, // Skip to: 727
/* 295 */ MCD_OPC_CheckField, 18, 3, 4, 170, 1, // Skip to: 727
/* 301 */ MCD_OPC_Decode, 98, 5, // Opcode: OR_GErr
/* 304 */ MCD_OPC_FilterValue, 15, 53, 0, // Skip to: 361
/* 308 */ MCD_OPC_ExtractField, 18, 10, // Inst{27-18} ...
/* 311 */ MCD_OPC_FilterValue, 0, 3, 0, // Skip to: 318
/* 315 */ MCD_OPC_Decode, 116, 5, // Opcode: SHrr
/* 318 */ MCD_OPC_FilterValue, 4, 3, 0, // Skip to: 325
/* 322 */ MCD_OPC_Decode, 114, 5, // Opcode: SHArr
/* 325 */ MCD_OPC_FilterValue, 32, 3, 0, // Skip to: 332
/* 329 */ MCD_OPC_Decode, 50, 5, // Opcode: ANDrr
/* 332 */ MCD_OPC_FilterValue, 36, 3, 0, // Skip to: 339
/* 336 */ MCD_OPC_Decode, 87, 5, // Opcode: NANDrr
/* 339 */ MCD_OPC_FilterValue, 40, 3, 0, // Skip to: 346
/* 343 */ MCD_OPC_Decode, 106, 5, // Opcode: ORrr
/* 346 */ MCD_OPC_FilterValue, 44, 3, 0, // Skip to: 353
/* 350 */ MCD_OPC_Decode, 91, 5, // Opcode: NORrr
/* 353 */ MCD_OPC_FilterValue, 48, 114, 1, // Skip to: 727
/* 357 */ MCD_OPC_Decode, 132, 1, 5, // Opcode: XORrr
/* 361 */ MCD_OPC_FilterValue, 25, 3, 0, // Skip to: 368
/* 365 */ MCD_OPC_Decode, 70, 8, // Opcode: LDWbo
/* 368 */ MCD_OPC_FilterValue, 27, 3, 0, // Skip to: 375
/* 372 */ MCD_OPC_Decode, 27, 9, // Opcode: ADDIrlc
/* 375 */ MCD_OPC_FilterValue, 29, 3, 0, // Skip to: 382
/* 379 */ MCD_OPC_Decode, 64, 10, // Opcode: Jb
/* 382 */ MCD_OPC_FilterValue, 55, 9, 0, // Skip to: 395
/* 386 */ MCD_OPC_CheckField, 21, 2, 2, 79, 1, // Skip to: 727
/* 392 */ MCD_OPC_Decode, 58, 11, // Opcode: EXTRrrpw
/* 395 */ MCD_OPC_FilterValue, 59, 3, 0, // Skip to: 402
/* 399 */ MCD_OPC_Decode, 80, 9, // Opcode: MOVrlc
/* 402 */ MCD_OPC_FilterValue, 83, 9, 0, // Skip to: 415
/* 406 */ MCD_OPC_CheckField, 21, 7, 1, 59, 1, // Skip to: 727
/* 412 */ MCD_OPC_Decode, 83, 7, // Opcode: MULrc
/* 415 */ MCD_OPC_FilterValue, 109, 3, 0, // Skip to: 422
/* 419 */ MCD_OPC_Decode, 54, 10, // Opcode: CALLb
/* 422 */ MCD_OPC_FilterValue, 115, 9, 0, // Skip to: 435
/* 426 */ MCD_OPC_CheckField, 16, 12, 10, 39, 1, // Skip to: 727
/* 432 */ MCD_OPC_Decode, 84, 12, // Opcode: MULrr2
/* 435 */ MCD_OPC_FilterValue, 119, 9, 0, // Skip to: 448
/* 439 */ MCD_OPC_CheckField, 21, 2, 0, 26, 1, // Skip to: 727
/* 445 */ MCD_OPC_Decode, 55, 11, // Opcode: DEXTRrrpw
/* 448 */ MCD_OPC_FilterValue, 123, 3, 0, // Skip to: 455
/* 452 */ MCD_OPC_Decode, 77, 9, // Opcode: MOVHrlc
/* 455 */ MCD_OPC_FilterValue, 137, 1, 38, 0, // Skip to: 498
/* 460 */ MCD_OPC_ExtractField, 22, 6, // Inst{27-22} ...
/* 463 */ MCD_OPC_FilterValue, 32, 3, 0, // Skip to: 470
/* 467 */ MCD_OPC_Decode, 118, 6, // Opcode: STBbo
/* 470 */ MCD_OPC_FilterValue, 34, 3, 0, // Skip to: 477
/* 474 */ MCD_OPC_Decode, 120, 6, // Opcode: STHbo
/* 477 */ MCD_OPC_FilterValue, 36, 3, 0, // Skip to: 484
/* 481 */ MCD_OPC_Decode, 121, 6, // Opcode: STWbo
/* 484 */ MCD_OPC_FilterValue, 37, 3, 0, // Skip to: 491
/* 488 */ MCD_OPC_Decode, 119, 6, // Opcode: STDbo
/* 491 */ MCD_OPC_FilterValue, 38, 232, 0, // Skip to: 727
/* 495 */ MCD_OPC_Decode, 117, 6, // Opcode: STAbo
/* 498 */ MCD_OPC_FilterValue, 139, 1, 122, 0, // Skip to: 625
/* 503 */ MCD_OPC_ExtractField, 21, 7, // Inst{27-21} ...
/* 506 */ MCD_OPC_FilterValue, 0, 3, 0, // Skip to: 513
/* 510 */ MCD_OPC_Decode, 32, 7, // Opcode: ADDrc
/* 513 */ MCD_OPC_FilterValue, 5, 3, 0, // Skip to: 520
/* 517 */ MCD_OPC_Decode, 25, 7, // Opcode: ADDCrc
/* 520 */ MCD_OPC_FilterValue, 8, 3, 0, // Skip to: 527
/* 524 */ MCD_OPC_Decode, 111, 7, // Opcode: RSUBrc
/* 527 */ MCD_OPC_FilterValue, 16, 3, 0, // Skip to: 534
/* 531 */ MCD_OPC_Decode, 56, 7, // Opcode: EQrc
/* 534 */ MCD_OPC_FilterValue, 17, 3, 0, // Skip to: 541
/* 538 */ MCD_OPC_Decode, 88, 7, // Opcode: NErc
/* 541 */ MCD_OPC_FilterValue, 18, 3, 0, // Skip to: 548
/* 545 */ MCD_OPC_Decode, 71, 7, // Opcode: LTrc
/* 548 */ MCD_OPC_FilterValue, 20, 3, 0, // Skip to: 555
/* 552 */ MCD_OPC_Decode, 59, 7, // Opcode: GErc
/* 555 */ MCD_OPC_FilterValue, 32, 3, 0, // Skip to: 562
/* 559 */ MCD_OPC_Decode, 40, 7, // Opcode: AND_EQrc
/* 562 */ MCD_OPC_FilterValue, 34, 3, 0, // Skip to: 569
/* 566 */ MCD_OPC_Decode, 47, 7, // Opcode: AND_LTrc
/* 569 */ MCD_OPC_FilterValue, 35, 3, 0, // Skip to: 576
/* 573 */ MCD_OPC_Decode, 45, 7, // Opcode: AND_LTUrc
/* 576 */ MCD_OPC_FilterValue, 36, 3, 0, // Skip to: 583
/* 580 */ MCD_OPC_Decode, 44, 7, // Opcode: AND_GErc
/* 583 */ MCD_OPC_FilterValue, 37, 3, 0, // Skip to: 590
/* 587 */ MCD_OPC_Decode, 42, 7, // Opcode: AND_GEUrc
/* 590 */ MCD_OPC_FilterValue, 40, 3, 0, // Skip to: 597
/* 594 */ MCD_OPC_Decode, 102, 7, // Opcode: OR_NErc
/* 597 */ MCD_OPC_FilterValue, 41, 3, 0, // Skip to: 604
/* 601 */ MCD_OPC_Decode, 100, 7, // Opcode: OR_LTrc
/* 604 */ MCD_OPC_FilterValue, 42, 3, 0, // Skip to: 611
/* 608 */ MCD_OPC_Decode, 99, 7, // Opcode: OR_LTUrc
/* 611 */ MCD_OPC_FilterValue, 43, 3, 0, // Skip to: 618
/* 615 */ MCD_OPC_Decode, 97, 7, // Opcode: OR_GErc
/* 618 */ MCD_OPC_FilterValue, 44, 105, 0, // Skip to: 727
/* 622 */ MCD_OPC_Decode, 96, 7, // Opcode: OR_GEUrc
/* 625 */ MCD_OPC_FilterValue, 143, 1, 75, 0, // Skip to: 705
/* 630 */ MCD_OPC_ExtractField, 21, 7, // Inst{27-21} ...
/* 633 */ MCD_OPC_FilterValue, 0, 3, 0, // Skip to: 640
/* 637 */ MCD_OPC_Decode, 115, 7, // Opcode: SHrc
/* 640 */ MCD_OPC_FilterValue, 1, 3, 0, // Skip to: 647
/* 644 */ MCD_OPC_Decode, 113, 7, // Opcode: SHArc
/* 647 */ MCD_OPC_FilterValue, 8, 3, 0, // Skip to: 654
/* 651 */ MCD_OPC_Decode, 48, 7, // Opcode: ANDrc
/* 654 */ MCD_OPC_FilterValue, 9, 3, 0, // Skip to: 661
/* 658 */ MCD_OPC_Decode, 86, 7, // Opcode: NANDrc
/* 661 */ MCD_OPC_FilterValue, 10, 3, 0, // Skip to: 668
/* 665 */ MCD_OPC_Decode, 104, 7, // Opcode: ORrc
/* 668 */ MCD_OPC_FilterValue, 11, 3, 0, // Skip to: 675
/* 672 */ MCD_OPC_Decode, 90, 7, // Opcode: NORrc
/* 675 */ MCD_OPC_FilterValue, 12, 4, 0, // Skip to: 683
/* 679 */ MCD_OPC_Decode, 129, 1, 7, // Opcode: XORrc
/* 683 */ MCD_OPC_FilterValue, 13, 4, 0, // Skip to: 691
/* 687 */ MCD_OPC_Decode, 128, 1, 7, // Opcode: XNORrc
/* 691 */ MCD_OPC_FilterValue, 14, 3, 0, // Skip to: 698
/* 695 */ MCD_OPC_Decode, 38, 7, // Opcode: ANDNrc
/* 698 */ MCD_OPC_FilterValue, 15, 25, 0, // Skip to: 727
/* 702 */ MCD_OPC_Decode, 94, 7, // Opcode: ORNrc
/* 705 */ MCD_OPC_FilterValue, 183, 1, 9, 0, // Skip to: 719
/* 710 */ MCD_OPC_CheckField, 21, 2, 1, 11, 0, // Skip to: 727
/* 716 */ MCD_OPC_Decode, 61, 13, // Opcode: IMASKrcpw
/* 719 */ MCD_OPC_FilterValue, 187, 1, 3, 0, // Skip to: 727
/* 724 */ MCD_OPC_Decode, 78, 9, // Opcode: MOVUrlc
/* 727 */ MCD_OPC_Fail,
/* 79 */ MCD_OPC_Decode, 70, 7, // Opcode: LDHUbo
/* 82 */ MCD_OPC_FilterValue, 36, 3, 0, // Skip to: 89
/* 86 */ MCD_OPC_Decode, 72, 7, // Opcode: LDWbo
/* 89 */ MCD_OPC_FilterValue, 37, 130, 2, // Skip to: 735
/* 93 */ MCD_OPC_Decode, 69, 7, // Opcode: LDDbo
/* 96 */ MCD_OPC_FilterValue, 11, 212, 0, // Skip to: 312
/* 100 */ MCD_OPC_ExtractField, 21, 7, // Inst{27-21} ...
/* 103 */ MCD_OPC_FilterValue, 0, 9, 0, // Skip to: 116
/* 107 */ MCD_OPC_CheckField, 18, 3, 0, 110, 2, // Skip to: 735
/* 113 */ MCD_OPC_Decode, 33, 6, // Opcode: ADDrr
/* 116 */ MCD_OPC_FilterValue, 2, 17, 0, // Skip to: 137
/* 120 */ MCD_OPC_ExtractField, 18, 3, // Inst{20-18} ...
/* 123 */ MCD_OPC_FilterValue, 0, 3, 0, // Skip to: 130
/* 127 */ MCD_OPC_Decode, 29, 6, // Opcode: ADDXrr
/* 130 */ MCD_OPC_FilterValue, 4, 89, 2, // Skip to: 735
/* 134 */ MCD_OPC_Decode, 26, 6, // Opcode: ADDCrr
/* 137 */ MCD_OPC_FilterValue, 4, 3, 0, // Skip to: 144
/* 141 */ MCD_OPC_Decode, 28, 8, // Opcode: ADDXrc
/* 144 */ MCD_OPC_FilterValue, 6, 18, 0, // Skip to: 166
/* 148 */ MCD_OPC_ExtractField, 18, 3, // Inst{20-18} ...
/* 151 */ MCD_OPC_FilterValue, 0, 4, 0, // Skip to: 159
/* 155 */ MCD_OPC_Decode, 128, 1, 6, // Opcode: SUBXrr
/* 159 */ MCD_OPC_FilterValue, 4, 60, 2, // Skip to: 735
/* 163 */ MCD_OPC_Decode, 127, 6, // Opcode: SUBCrr
/* 166 */ MCD_OPC_FilterValue, 8, 17, 0, // Skip to: 187
/* 170 */ MCD_OPC_ExtractField, 18, 3, // Inst{20-18} ...
/* 173 */ MCD_OPC_FilterValue, 0, 3, 0, // Skip to: 180
/* 177 */ MCD_OPC_Decode, 57, 6, // Opcode: EQrr
/* 180 */ MCD_OPC_FilterValue, 4, 39, 2, // Skip to: 735
/* 184 */ MCD_OPC_Decode, 92, 6, // Opcode: NErr
/* 187 */ MCD_OPC_FilterValue, 9, 9, 0, // Skip to: 200
/* 191 */ MCD_OPC_CheckField, 18, 3, 0, 26, 2, // Skip to: 735
/* 197 */ MCD_OPC_Decode, 75, 6, // Opcode: LTrr
/* 200 */ MCD_OPC_FilterValue, 10, 9, 0, // Skip to: 213
/* 204 */ MCD_OPC_CheckField, 18, 3, 0, 13, 2, // Skip to: 735
/* 210 */ MCD_OPC_Decode, 60, 6, // Opcode: GErr
/* 213 */ MCD_OPC_FilterValue, 14, 9, 0, // Skip to: 226
/* 217 */ MCD_OPC_CheckField, 18, 3, 0, 0, 2, // Skip to: 735
/* 223 */ MCD_OPC_Decode, 23, 6, // Opcode: ABS
/* 226 */ MCD_OPC_FilterValue, 15, 9, 0, // Skip to: 239
/* 230 */ MCD_OPC_CheckField, 18, 3, 4, 243, 1, // Skip to: 735
/* 236 */ MCD_OPC_Decode, 84, 6, // Opcode: MOVrr
/* 239 */ MCD_OPC_FilterValue, 16, 9, 0, // Skip to: 252
/* 243 */ MCD_OPC_CheckField, 18, 3, 0, 230, 1, // Skip to: 735
/* 249 */ MCD_OPC_Decode, 41, 6, // Opcode: AND_EQrr
/* 252 */ MCD_OPC_FilterValue, 17, 9, 0, // Skip to: 265
/* 256 */ MCD_OPC_CheckField, 18, 3, 4, 217, 1, // Skip to: 735
/* 262 */ MCD_OPC_Decode, 46, 6, // Opcode: AND_LT_Urr
/* 265 */ MCD_OPC_FilterValue, 18, 9, 0, // Skip to: 278
/* 269 */ MCD_OPC_CheckField, 18, 3, 4, 204, 1, // Skip to: 735
/* 275 */ MCD_OPC_Decode, 43, 6, // Opcode: AND_GE_Urr
/* 278 */ MCD_OPC_FilterValue, 20, 17, 0, // Skip to: 299
/* 282 */ MCD_OPC_ExtractField, 18, 3, // Inst{20-18} ...
/* 285 */ MCD_OPC_FilterValue, 0, 3, 0, // Skip to: 292
/* 289 */ MCD_OPC_Decode, 106, 6, // Opcode: OR_NErr
/* 292 */ MCD_OPC_FilterValue, 4, 183, 1, // Skip to: 735
/* 296 */ MCD_OPC_Decode, 104, 6, // Opcode: OR_LTrr
/* 299 */ MCD_OPC_FilterValue, 21, 176, 1, // Skip to: 735
/* 303 */ MCD_OPC_CheckField, 18, 3, 4, 170, 1, // Skip to: 735
/* 309 */ MCD_OPC_Decode, 101, 6, // Opcode: OR_GErr
/* 312 */ MCD_OPC_FilterValue, 15, 53, 0, // Skip to: 369
/* 316 */ MCD_OPC_ExtractField, 18, 10, // Inst{27-18} ...
/* 319 */ MCD_OPC_FilterValue, 0, 3, 0, // Skip to: 326
/* 323 */ MCD_OPC_Decode, 119, 6, // Opcode: SHrr
/* 326 */ MCD_OPC_FilterValue, 4, 3, 0, // Skip to: 333
/* 330 */ MCD_OPC_Decode, 117, 6, // Opcode: SHArr
/* 333 */ MCD_OPC_FilterValue, 32, 3, 0, // Skip to: 340
/* 337 */ MCD_OPC_Decode, 50, 6, // Opcode: ANDrr
/* 340 */ MCD_OPC_FilterValue, 36, 3, 0, // Skip to: 347
/* 344 */ MCD_OPC_Decode, 90, 6, // Opcode: NANDrr
/* 347 */ MCD_OPC_FilterValue, 40, 3, 0, // Skip to: 354
/* 351 */ MCD_OPC_Decode, 109, 6, // Opcode: ORrr
/* 354 */ MCD_OPC_FilterValue, 44, 3, 0, // Skip to: 361
/* 358 */ MCD_OPC_Decode, 94, 6, // Opcode: NORrr
/* 361 */ MCD_OPC_FilterValue, 48, 114, 1, // Skip to: 735
/* 365 */ MCD_OPC_Decode, 135, 1, 6, // Opcode: XORrr
/* 369 */ MCD_OPC_FilterValue, 25, 3, 0, // Skip to: 376
/* 373 */ MCD_OPC_Decode, 73, 9, // Opcode: LDWbol
/* 376 */ MCD_OPC_FilterValue, 27, 3, 0, // Skip to: 383
/* 380 */ MCD_OPC_Decode, 27, 10, // Opcode: ADDIrlc
/* 383 */ MCD_OPC_FilterValue, 29, 3, 0, // Skip to: 390
/* 387 */ MCD_OPC_Decode, 66, 11, // Opcode: Jb
/* 390 */ MCD_OPC_FilterValue, 55, 9, 0, // Skip to: 403
/* 394 */ MCD_OPC_CheckField, 21, 2, 2, 79, 1, // Skip to: 735
/* 400 */ MCD_OPC_Decode, 58, 12, // Opcode: EXTRrrpw
/* 403 */ MCD_OPC_FilterValue, 59, 3, 0, // Skip to: 410
/* 407 */ MCD_OPC_Decode, 83, 10, // Opcode: MOVrlc
/* 410 */ MCD_OPC_FilterValue, 83, 9, 0, // Skip to: 423
/* 414 */ MCD_OPC_CheckField, 21, 7, 1, 59, 1, // Skip to: 735
/* 420 */ MCD_OPC_Decode, 86, 8, // Opcode: MULrc
/* 423 */ MCD_OPC_FilterValue, 109, 3, 0, // Skip to: 430
/* 427 */ MCD_OPC_Decode, 54, 11, // Opcode: CALLb
/* 430 */ MCD_OPC_FilterValue, 115, 9, 0, // Skip to: 443
/* 434 */ MCD_OPC_CheckField, 16, 12, 10, 39, 1, // Skip to: 735
/* 440 */ MCD_OPC_Decode, 87, 13, // Opcode: MULrr2
/* 443 */ MCD_OPC_FilterValue, 119, 9, 0, // Skip to: 456
/* 447 */ MCD_OPC_CheckField, 21, 2, 0, 26, 1, // Skip to: 735
/* 453 */ MCD_OPC_Decode, 55, 12, // Opcode: DEXTRrrpw
/* 456 */ MCD_OPC_FilterValue, 123, 3, 0, // Skip to: 463
/* 460 */ MCD_OPC_Decode, 80, 10, // Opcode: MOVHrlc
/* 463 */ MCD_OPC_FilterValue, 137, 1, 38, 0, // Skip to: 506
/* 468 */ MCD_OPC_ExtractField, 22, 6, // Inst{27-22} ...
/* 471 */ MCD_OPC_FilterValue, 32, 3, 0, // Skip to: 478
/* 475 */ MCD_OPC_Decode, 121, 7, // Opcode: STBbo
/* 478 */ MCD_OPC_FilterValue, 34, 3, 0, // Skip to: 485
/* 482 */ MCD_OPC_Decode, 123, 7, // Opcode: STHbo
/* 485 */ MCD_OPC_FilterValue, 36, 3, 0, // Skip to: 492
/* 489 */ MCD_OPC_Decode, 124, 7, // Opcode: STWbo
/* 492 */ MCD_OPC_FilterValue, 37, 3, 0, // Skip to: 499
/* 496 */ MCD_OPC_Decode, 122, 7, // Opcode: STDbo
/* 499 */ MCD_OPC_FilterValue, 38, 232, 0, // Skip to: 735
/* 503 */ MCD_OPC_Decode, 120, 7, // Opcode: STAbo
/* 506 */ MCD_OPC_FilterValue, 139, 1, 122, 0, // Skip to: 633
/* 511 */ MCD_OPC_ExtractField, 21, 7, // Inst{27-21} ...
/* 514 */ MCD_OPC_FilterValue, 0, 3, 0, // Skip to: 521
/* 518 */ MCD_OPC_Decode, 32, 8, // Opcode: ADDrc
/* 521 */ MCD_OPC_FilterValue, 5, 3, 0, // Skip to: 528
/* 525 */ MCD_OPC_Decode, 25, 8, // Opcode: ADDCrc
/* 528 */ MCD_OPC_FilterValue, 8, 3, 0, // Skip to: 535
/* 532 */ MCD_OPC_Decode, 114, 8, // Opcode: RSUBrc
/* 535 */ MCD_OPC_FilterValue, 16, 3, 0, // Skip to: 542
/* 539 */ MCD_OPC_Decode, 56, 8, // Opcode: EQrc
/* 542 */ MCD_OPC_FilterValue, 17, 3, 0, // Skip to: 549
/* 546 */ MCD_OPC_Decode, 91, 8, // Opcode: NErc
/* 549 */ MCD_OPC_FilterValue, 18, 3, 0, // Skip to: 556
/* 553 */ MCD_OPC_Decode, 74, 8, // Opcode: LTrc
/* 556 */ MCD_OPC_FilterValue, 20, 3, 0, // Skip to: 563
/* 560 */ MCD_OPC_Decode, 59, 8, // Opcode: GErc
/* 563 */ MCD_OPC_FilterValue, 32, 3, 0, // Skip to: 570
/* 567 */ MCD_OPC_Decode, 40, 8, // Opcode: AND_EQrc
/* 570 */ MCD_OPC_FilterValue, 34, 3, 0, // Skip to: 577
/* 574 */ MCD_OPC_Decode, 47, 8, // Opcode: AND_LTrc
/* 577 */ MCD_OPC_FilterValue, 35, 3, 0, // Skip to: 584
/* 581 */ MCD_OPC_Decode, 45, 8, // Opcode: AND_LTUrc
/* 584 */ MCD_OPC_FilterValue, 36, 3, 0, // Skip to: 591
/* 588 */ MCD_OPC_Decode, 44, 8, // Opcode: AND_GErc
/* 591 */ MCD_OPC_FilterValue, 37, 3, 0, // Skip to: 598
/* 595 */ MCD_OPC_Decode, 42, 8, // Opcode: AND_GEUrc
/* 598 */ MCD_OPC_FilterValue, 40, 3, 0, // Skip to: 605
/* 602 */ MCD_OPC_Decode, 105, 8, // Opcode: OR_NErc
/* 605 */ MCD_OPC_FilterValue, 41, 3, 0, // Skip to: 612
/* 609 */ MCD_OPC_Decode, 103, 8, // Opcode: OR_LTrc
/* 612 */ MCD_OPC_FilterValue, 42, 3, 0, // Skip to: 619
/* 616 */ MCD_OPC_Decode, 102, 8, // Opcode: OR_LTUrc
/* 619 */ MCD_OPC_FilterValue, 43, 3, 0, // Skip to: 626
/* 623 */ MCD_OPC_Decode, 100, 8, // Opcode: OR_GErc
/* 626 */ MCD_OPC_FilterValue, 44, 105, 0, // Skip to: 735
/* 630 */ MCD_OPC_Decode, 99, 8, // Opcode: OR_GEUrc
/* 633 */ MCD_OPC_FilterValue, 143, 1, 75, 0, // Skip to: 713
/* 638 */ MCD_OPC_ExtractField, 21, 7, // Inst{27-21} ...
/* 641 */ MCD_OPC_FilterValue, 0, 3, 0, // Skip to: 648
/* 645 */ MCD_OPC_Decode, 118, 8, // Opcode: SHrc
/* 648 */ MCD_OPC_FilterValue, 1, 3, 0, // Skip to: 655
/* 652 */ MCD_OPC_Decode, 116, 8, // Opcode: SHArc
/* 655 */ MCD_OPC_FilterValue, 8, 3, 0, // Skip to: 662
/* 659 */ MCD_OPC_Decode, 48, 8, // Opcode: ANDrc
/* 662 */ MCD_OPC_FilterValue, 9, 3, 0, // Skip to: 669
/* 666 */ MCD_OPC_Decode, 89, 8, // Opcode: NANDrc
/* 669 */ MCD_OPC_FilterValue, 10, 3, 0, // Skip to: 676
/* 673 */ MCD_OPC_Decode, 107, 8, // Opcode: ORrc
/* 676 */ MCD_OPC_FilterValue, 11, 3, 0, // Skip to: 683
/* 680 */ MCD_OPC_Decode, 93, 8, // Opcode: NORrc
/* 683 */ MCD_OPC_FilterValue, 12, 4, 0, // Skip to: 691
/* 687 */ MCD_OPC_Decode, 132, 1, 8, // Opcode: XORrc
/* 691 */ MCD_OPC_FilterValue, 13, 4, 0, // Skip to: 699
/* 695 */ MCD_OPC_Decode, 131, 1, 8, // Opcode: XNORrc
/* 699 */ MCD_OPC_FilterValue, 14, 3, 0, // Skip to: 706
/* 703 */ MCD_OPC_Decode, 38, 8, // Opcode: ANDNrc
/* 706 */ MCD_OPC_FilterValue, 15, 25, 0, // Skip to: 735
/* 710 */ MCD_OPC_Decode, 97, 8, // Opcode: ORNrc
/* 713 */ MCD_OPC_FilterValue, 183, 1, 9, 0, // Skip to: 727
/* 718 */ MCD_OPC_CheckField, 21, 2, 1, 11, 0, // Skip to: 735
/* 724 */ MCD_OPC_Decode, 61, 14, // Opcode: IMASKrcpw
/* 727 */ MCD_OPC_FilterValue, 187, 1, 3, 0, // Skip to: 735
/* 732 */ MCD_OPC_Decode, 81, 10, // Opcode: MOVUrlc
/* 735 */ MCD_OPC_Fail,
0
};
@ -281,36 +287,39 @@ static DecodeStatus fname(DecodeStatus S, unsigned Idx, InsnType insn, MCInst *M
if (DecodeSRInstruction(MI, insn, Address, Decoder) == MCDisassembler_Fail) return MCDisassembler_Fail; \
return S; \
case 3: \
if (DecodeSBRInstruction(MI, insn, Address, Decoder) == MCDisassembler_Fail) return MCDisassembler_Fail; \
if (DecodeSBInstruction(MI, insn, Address, Decoder) == MCDisassembler_Fail) return MCDisassembler_Fail; \
return S; \
case 4: \
if (DecodeSRCInstruction(MI, insn, Address, Decoder) == MCDisassembler_Fail) return MCDisassembler_Fail; \
if (DecodeSBRInstruction(MI, insn, Address, Decoder) == MCDisassembler_Fail) return MCDisassembler_Fail; \
return S; \
case 5: \
if (DecodeRRInstruction(MI, insn, Address, Decoder) == MCDisassembler_Fail) return MCDisassembler_Fail; \
if (DecodeSRCInstruction(MI, insn, Address, Decoder) == MCDisassembler_Fail) return MCDisassembler_Fail; \
return S; \
case 6: \
if (DecodeBOInstruction(MI, insn, Address, Decoder) == MCDisassembler_Fail) return MCDisassembler_Fail; \
if (DecodeRRInstruction(MI, insn, Address, Decoder) == MCDisassembler_Fail) return MCDisassembler_Fail; \
return S; \
case 7: \
if (DecodeRCInstruction(MI, insn, Address, Decoder) == MCDisassembler_Fail) return MCDisassembler_Fail; \
if (DecodeBOInstruction(MI, insn, Address, Decoder) == MCDisassembler_Fail) return MCDisassembler_Fail; \
return S; \
case 8: \
if (DecodeBOLInstruction(MI, insn, Address, Decoder) == MCDisassembler_Fail) return MCDisassembler_Fail; \
if (DecodeRCInstruction(MI, insn, Address, Decoder) == MCDisassembler_Fail) return MCDisassembler_Fail; \
return S; \
case 9: \
if (DecodeRCLInstruction(MI, insn, Address, Decoder) == MCDisassembler_Fail) return MCDisassembler_Fail; \
if (DecodeBOLInstruction(MI, insn, Address, Decoder) == MCDisassembler_Fail) return MCDisassembler_Fail; \
return S; \
case 10: \
if (DecodeBInstruction(MI, insn, Address, Decoder) == MCDisassembler_Fail) return MCDisassembler_Fail; \
if (DecodeRLCInstruction(MI, insn, Address, Decoder) == MCDisassembler_Fail) return MCDisassembler_Fail; \
return S; \
case 11: \
if (DecodeRRPWInstruction(MI, insn, Address, Decoder) == MCDisassembler_Fail) return MCDisassembler_Fail; \
if (DecodeBInstruction(MI, insn, Address, Decoder) == MCDisassembler_Fail) return MCDisassembler_Fail; \
return S; \
case 12: \
if (DecodeRR2Instruction(MI, insn, Address, Decoder) == MCDisassembler_Fail) return MCDisassembler_Fail; \
if (DecodeRRPWInstruction(MI, insn, Address, Decoder) == MCDisassembler_Fail) return MCDisassembler_Fail; \
return S; \
case 13: \
if (DecodeRR2Instruction(MI, insn, Address, Decoder) == MCDisassembler_Fail) return MCDisassembler_Fail; \
return S; \
case 14: \
if (DecodeRCPWInstruction(MI, insn, Address, Decoder) == MCDisassembler_Fail) return MCDisassembler_Fail; \
return S; \
} \

View file

@ -76,80 +76,83 @@ enum {
TriCore_GErc = 59,
TriCore_GErr = 60,
TriCore_IMASKrcpw = 61,
TriCore_JNZsbr = 62,
TriCore_JZsbr = 63,
TriCore_Jb = 64,
TriCore_LDBUbo = 65,
TriCore_LDBbo = 66,
TriCore_LDDbo = 67,
TriCore_LDHUbo = 68,
TriCore_LDHbo = 69,
TriCore_LDWbo = 70,
TriCore_LTrc = 71,
TriCore_LTrr = 72,
TriCore_MOVAArr = 73,
TriCore_MOVAAsrr = 74,
TriCore_MOVArr = 75,
TriCore_MOVDrr = 76,
TriCore_MOVHrlc = 77,
TriCore_MOVUrlc = 78,
TriCore_MOVi32 = 79,
TriCore_MOVrlc = 80,
TriCore_MOVrr = 81,
TriCore_MOVsrc = 82,
TriCore_MULrc = 83,
TriCore_MULrr2 = 84,
TriCore_MULsrr = 85,
TriCore_NANDrc = 86,
TriCore_NANDrr = 87,
TriCore_NErc = 88,
TriCore_NErr = 89,
TriCore_NORrc = 90,
TriCore_NORrr = 91,
TriCore_NOTrr64 = 92,
TriCore_NOTsr = 93,
TriCore_ORNrc = 94,
TriCore_ORNrc64 = 95,
TriCore_OR_GEUrc = 96,
TriCore_OR_GErc = 97,
TriCore_OR_GErr = 98,
TriCore_OR_LTUrc = 99,
TriCore_OR_LTrc = 100,
TriCore_OR_LTrr = 101,
TriCore_OR_NErc = 102,
TriCore_OR_NErr = 103,
TriCore_ORrc = 104,
TriCore_ORrc64 = 105,
TriCore_ORrr = 106,
TriCore_ORsc = 107,
TriCore_ORsrr = 108,
TriCore_ORsrr64 = 109,
TriCore_RET = 110,
TriCore_RSUBrc = 111,
TriCore_RSUBsr = 112,
TriCore_SHArc = 113,
TriCore_SHArr = 114,
TriCore_SHrc = 115,
TriCore_SHrr = 116,
TriCore_STAbo = 117,
TriCore_STBbo = 118,
TriCore_STDbo = 119,
TriCore_STHbo = 120,
TriCore_STWbo = 121,
TriCore_SUBArr = 122,
TriCore_SUBAsc = 123,
TriCore_SUBCrr = 124,
TriCore_SUBXrr = 125,
TriCore_SUBi64 = 126,
TriCore_Select8 = 127,
TriCore_XNORrc = 128,
TriCore_XORrc = 129,
TriCore_XORrc64 = 130,
TriCore_XORrcneg64 = 131,
TriCore_XORrr = 132,
TriCore_XORsrr = 133,
TriCore_XORsrr64 = 134,
TriCore_INSTRUCTION_LIST_END = 135
TriCore_JNZsb = 62,
TriCore_JNZsbr = 63,
TriCore_JZsb = 64,
TriCore_JZsbr = 65,
TriCore_Jb = 66,
TriCore_LDBUbo = 67,
TriCore_LDBbo = 68,
TriCore_LDDbo = 69,
TriCore_LDHUbo = 70,
TriCore_LDHbo = 71,
TriCore_LDWbo = 72,
TriCore_LDWbol = 73,
TriCore_LTrc = 74,
TriCore_LTrr = 75,
TriCore_MOVAArr = 76,
TriCore_MOVAAsrr = 77,
TriCore_MOVArr = 78,
TriCore_MOVDrr = 79,
TriCore_MOVHrlc = 80,
TriCore_MOVUrlc = 81,
TriCore_MOVi32 = 82,
TriCore_MOVrlc = 83,
TriCore_MOVrr = 84,
TriCore_MOVsrc = 85,
TriCore_MULrc = 86,
TriCore_MULrr2 = 87,
TriCore_MULsrr = 88,
TriCore_NANDrc = 89,
TriCore_NANDrr = 90,
TriCore_NErc = 91,
TriCore_NErr = 92,
TriCore_NORrc = 93,
TriCore_NORrr = 94,
TriCore_NOTrr64 = 95,
TriCore_NOTsr = 96,
TriCore_ORNrc = 97,
TriCore_ORNrc64 = 98,
TriCore_OR_GEUrc = 99,
TriCore_OR_GErc = 100,
TriCore_OR_GErr = 101,
TriCore_OR_LTUrc = 102,
TriCore_OR_LTrc = 103,
TriCore_OR_LTrr = 104,
TriCore_OR_NErc = 105,
TriCore_OR_NErr = 106,
TriCore_ORrc = 107,
TriCore_ORrc64 = 108,
TriCore_ORrr = 109,
TriCore_ORsc = 110,
TriCore_ORsrr = 111,
TriCore_ORsrr64 = 112,
TriCore_RET = 113,
TriCore_RSUBrc = 114,
TriCore_RSUBsr = 115,
TriCore_SHArc = 116,
TriCore_SHArr = 117,
TriCore_SHrc = 118,
TriCore_SHrr = 119,
TriCore_STAbo = 120,
TriCore_STBbo = 121,
TriCore_STDbo = 122,
TriCore_STHbo = 123,
TriCore_STWbo = 124,
TriCore_SUBArr = 125,
TriCore_SUBAsc = 126,
TriCore_SUBCrr = 127,
TriCore_SUBXrr = 128,
TriCore_SUBi64 = 129,
TriCore_Select8 = 130,
TriCore_XNORrc = 131,
TriCore_XORrc = 132,
TriCore_XORrc64 = 133,
TriCore_XORrcneg64 = 134,
TriCore_XORrr = 135,
TriCore_XORsrr = 136,
TriCore_XORsrr64 = 137,
TriCore_INSTRUCTION_LIST_END = 138
};
#endif // GET_INSTRINFO_ENUM

View file

@ -210,7 +210,7 @@ static MCRegisterClass TriCoreMCRegisterClasses[] = {
{ "AddrRegs", AddrRegs, AddrRegsBits, 16, sizeof(AddrRegsBits), TriCore_AddrRegsRegClassID, 4, 4, 1, 1 },
{ "DataRegs", DataRegs, DataRegsBits, 16, sizeof(DataRegsBits), TriCore_DataRegsRegClassID, 4, 4, 1, 1 },
{ "PSRegs", PSRegs, PSRegsBits, 4, sizeof(PSRegsBits), TriCore_PSRegsRegClassID, 4, 4, 1, 1 },
{ "ExtRegs", ExtRegs, ExtRegsBits, 8, sizeof(ExtRegsBits), TriCore_ExtRegsRegClassID, 8, 4, 1, 1 },
{ "ExtRegs", ExtRegs, ExtRegsBits, 8, sizeof(ExtRegsBits), TriCore_ExtRegsRegClassID, 8, 8, 1, 1 },
};

View file

@ -187,7 +187,6 @@ static void printPCRelImmOperand(MCInst *MI, int OpNum, SStream *O) {
}
// Print a 'memsrc' operand which is a (Register, Offset) pair.
// TODO: verify this function
static void printAddrModeMemSrc(MCInst *MI, int OpNum, SStream *O) {
set_mem_access(MI, true);
@ -200,7 +199,6 @@ static void printAddrModeMemSrc(MCInst *MI, int OpNum, SStream *O) {
SStream_concat(O, "]");
}
SStream_concat(O, " ");
printOperand(MI, OpNum+1, O); // Disp
set_mem_access(MI, false);
}

View file

@ -318,18 +318,30 @@ static insn_map insns[] = {
TriCore_IMASKrcpw, TRICORE_INS_IMASK,
#ifndef CAPSTONE_DIET
{ 0 }, { 0 }, { 0 }, 0, 0
#endif
},
{
TriCore_JNZsb, TRICORE_INS_JNZ,
#ifndef CAPSTONE_DIET
{ TRICORE_REG_PC, TRICORE_REG_D15, 0 }, { TRICORE_REG_PC, 0 }, { 0 }, 0, 0
#endif
},
{
TriCore_JNZsbr, TRICORE_INS_JNZ,
#ifndef CAPSTONE_DIET
{ 0 }, { 0 }, { 0 }, 0, 0
{ TRICORE_REG_PC, 0 }, { TRICORE_REG_PC, 0 }, { 0 }, 0, 0
#endif
},
{
TriCore_JZsb, TRICORE_INS_JZ,
#ifndef CAPSTONE_DIET
{ TRICORE_REG_PC, TRICORE_REG_D15, 0 }, { TRICORE_REG_PC, 0 }, { 0 }, 0, 0
#endif
},
{
TriCore_JZsbr, TRICORE_INS_JZ,
#ifndef CAPSTONE_DIET
{ 0 }, { 0 }, { 0 }, 0, 0
{ TRICORE_REG_PC, 0 }, { TRICORE_REG_PC, 0 }, { 0 }, 0, 0
#endif
},
{