Skip to content

Commit

Permalink
Remove LI instruction (they are alias).
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Jul 25, 2023
1 parent b695f51 commit 0060839
Show file tree
Hide file tree
Showing 6 changed files with 4,551 additions and 4,571 deletions.
8 changes: 4 additions & 4 deletions arch/PowerPC/PPCGenCSMappingInsn.inc
Original file line number Diff line number Diff line change
Expand Up @@ -8508,9 +8508,9 @@
},
{
/* li $rD, $imm */
PPC_LI /* 1212 */, PPC_INS_LI,
PPC_LI /* 1212 */, PPC_INS_INVALID,
#ifndef CAPSTONE_DIET
{ 0 }, { 0 }, { 0 }, 0, 0, {{ PPC_INSN_FORM_DFORM_2_R0 }}
{ 0 }, { 0 }, { 0 }, 0, 0, {{ 0 }}
#endif
},
{
Expand All @@ -8522,9 +8522,9 @@
},
{
/* lis $rD, $imm */
PPC_LIS /* 1214 */, PPC_INS_LIS,
PPC_LIS /* 1214 */, PPC_INS_INVALID,
#ifndef CAPSTONE_DIET
{ 0 }, { 0 }, { 0 }, 0, 0, {{ PPC_INSN_FORM_DFORM_2_R0 }}
{ 0 }, { 0 }, { 0 }, 0, 0, {{ 0 }}
#endif
},
{
Expand Down
2 changes: 0 additions & 2 deletions arch/PowerPC/PPCGenCSMappingInsnName.inc
Original file line number Diff line number Diff line change
Expand Up @@ -558,8 +558,6 @@
"lhzu", // PPC_INS_LHZU
"lhzux", // PPC_INS_LHZUX
"lhzx", // PPC_INS_LHZX
"li", // PPC_INS_LI
"lis", // PPC_INS_LIS
"lmw", // PPC_INS_LMW
"lq", // PPC_INS_LQ
"lqarx", // PPC_INS_LQARX
Expand Down
18 changes: 6 additions & 12 deletions arch/PowerPC/PPCGenCSMappingInsnOp.inc
Original file line number Diff line number Diff line change
Expand Up @@ -6080,21 +6080,15 @@
{{{ /* PPC_LHZXTLS_32 (1211) - PPC_INS_INVALID - lhzx $rD, $rA, $rB */
0
}}},
{ /* PPC_LI (1212) - PPC_INS_LI - li $rD, $imm */
{
{ CS_OP_REG, CS_AC_WRITE, { CS_DATA_TYPE_i32, CS_DATA_TYPE_f32, CS_DATA_TYPE_LAST } }, /* rD */
{ CS_OP_IMM, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* imm */
{ 0 }
}},
{{{ /* PPC_LI (1212) - PPC_INS_INVALID - li $rD, $imm */
0
}}},
{{{ /* PPC_LI8 (1213) - PPC_INS_INVALID - li $rD, $imm */
0
}}},
{ /* PPC_LIS (1214) - PPC_INS_LIS - lis $rD, $imm */
{
{ CS_OP_REG, CS_AC_WRITE, { CS_DATA_TYPE_i32, CS_DATA_TYPE_f32, CS_DATA_TYPE_LAST } }, /* rD */
{ CS_OP_IMM, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* imm */
{ 0 }
}},
{{{ /* PPC_LIS (1214) - PPC_INS_INVALID - lis $rD, $imm */
0
}}},
{{{ /* PPC_LIS8 (1215) - PPC_INS_INVALID - lis $rD, $imm */
0
}}},
Expand Down
Loading

0 comments on commit 0060839

Please sign in to comment.