Skip to content

Commit eaf4c01

Browse files
committed
Add always the extension.
1 parent 12c5e8f commit eaf4c01

File tree

1 file changed

+2
-19
lines changed

1 file changed

+2
-19
lines changed

arch/AArch64/AArch64Mapping.c

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -572,27 +572,10 @@ static void add_cs_detail_general(MCInst *MI, aarch64_op_group op_group,
572572
unsigned Val = MCInst_getOpVal(MI, OpNum);
573573
AArch64_AM_ShiftExtendType ExtType = AArch64_AM_getArithExtendType(Val);
574574
unsigned ShiftVal = AArch64_AM_getArithShiftValue(Val);
575-
576-
if (ExtType == AArch64_AM_UXTW || ExtType == AArch64_AM_UXTX) {
577-
unsigned Dest = MCInst_getOpVal(MI, (0));
578-
unsigned Src1 = MCInst_getOpVal(MI, (1));
579-
if (((Dest == AArch64_SP || Src1 == AArch64_SP) &&
580-
ExtType == AArch64_AM_UXTX) ||
581-
((Dest == AArch64_WSP || Src1 == AArch64_WSP) &&
582-
ExtType == AArch64_AM_UXTW)) {
583-
if (ShiftVal != 0) {
584-
AArch64_get_detail_op(MI, -1)->shift.value = ShiftVal;
585-
AArch64_get_detail_op(MI, -1)->shift.type = AArch64_SFT_LSL;
586-
}
587-
}
588-
break;
589-
}
590575

591576
AArch64_get_detail_op(MI, -1)->ext = llvm_to_cs_ext(ExtType);
592-
if (ShiftVal != 0) {
593-
AArch64_get_detail_op(MI, -1)->shift.value = ShiftVal;
594-
AArch64_get_detail_op(MI, -1)->shift.type = AArch64_SFT_LSL;
595-
}
577+
AArch64_get_detail_op(MI, -1)->shift.value = ShiftVal;
578+
AArch64_get_detail_op(MI, -1)->shift.type = AArch64_SFT_LSL;
596579
break;
597580
}
598581
case AArch64_OP_GROUP_BarriernXSOption: {

0 commit comments

Comments
 (0)