case 0x1:
switch (op2) {
case 0x0:
- return new WarnUnimplemented("sadd16", machInst);
+ return new Sadd16RegCc(machInst, rd, rn, rm, 0, LSL);
case 0x1:
return new WarnUnimplemented("sasx", machInst);
case 0x2:
case 0x3:
return new WarnUnimplemented("ssub16", machInst);
case 0x4:
- return new WarnUnimplemented("sadd8", machInst);
+ return new Sadd8RegCc(machInst, rd, rn, rm, 0, LSL);
case 0x7:
return new WarnUnimplemented("ssub8", machInst);
}
if (bits(op2, 2) == 0x0) {
const uint32_t op1 = bits(machInst, 22, 20);
const uint32_t op2 = bits(machInst, 5, 4);
+ const IntRegIndex rd =
+ (IntRegIndex)(uint32_t)bits(machInst, 11, 8);
+ const IntRegIndex rm =
+ (IntRegIndex)(uint32_t)bits(machInst, 3, 0);
switch (op2) {
case 0x0:
switch (op1) {
case 0x1:
- return new WarnUnimplemented("sadd16", machInst);
+ return new Sadd16RegCc(machInst, rd,
+ rn, rm, 0, LSL);
case 0x2:
return new WarnUnimplemented("sasx", machInst);
case 0x6:
case 0x5:
return new WarnUnimplemented("ssub16", machInst);
case 0x0:
- return new WarnUnimplemented("sadd8", machInst);
+ return new Sadd8RegCc(machInst, rd,
+ rn, rm, 0, LSL);
case 0x4:
return new WarnUnimplemented("ssub8", machInst);
}
break;
case 0x1:
- {
- IntRegIndex rn =
- (IntRegIndex)(uint32_t)bits(machInst, 19, 16);
- IntRegIndex rd =
- (IntRegIndex)(uint32_t)bits(machInst, 11, 8);
- IntRegIndex rm =
- (IntRegIndex)(uint32_t)bits(machInst, 3, 0);
- switch (op1) {
- case 0x1:
- return new Qadd16Reg(machInst, rd,
- rn, rm, 0, LSL);
- case 0x2:
- return new QasxReg(machInst, rd,
- rn, rm, 0, LSL);
- case 0x6:
- return new QsaxReg(machInst, rd,
- rn, rm, 0, LSL);
- case 0x5:
- return new Qsub16Reg(machInst, rd,
- rn, rm, 0, LSL);
- case 0x0:
- return new Qsub8Reg(machInst, rd,
- rn, rm, 0, LSL);
- case 0x4:
- return new Qsub8Reg(machInst, rd,
- rn, rm, 0, LSL);
- }
+ switch (op1) {
+ case 0x1:
+ return new Qadd16Reg(machInst, rd, rn, rm, 0, LSL);
+ case 0x2:
+ return new QasxReg(machInst, rd, rn, rm, 0, LSL);
+ case 0x6:
+ return new QsaxReg(machInst, rd, rn, rm, 0, LSL);
+ case 0x5:
+ return new Qsub16Reg(machInst, rd, rn, rm, 0, LSL);
+ case 0x0:
+ return new Qadd8Reg(machInst, rd, rn, rm, 0, LSL);
+ case 0x4:
+ return new Qsub8Reg(machInst, rd, rn, rm, 0, LSL);
}
break;
case 0x2: