Skip to content

Commit

Permalink
Make cmovng an alias of cmovle
Browse files Browse the repository at this point in the history
  • Loading branch information
hainest committed Nov 28, 2023
1 parent 0c677f8 commit 28b31c4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion common/h/mnemonics/x86_entryIDs.h
Expand Up @@ -78,7 +78,8 @@ e_cmovnae = e_cmovb,
e_cmovbe,
e_cmove,
e_cmovne,
e_cmovng,
e_cmovle,
e_cmovng = e_cmovle,
e_cmovnge,
e_cmovnl,
e_cmovno,
Expand Down
6 changes: 3 additions & 3 deletions common/src/arch-x86.C
Expand Up @@ -920,7 +920,7 @@ COMMON_EXPORT dyn_hash_map<entryID, std::string> entryNames_IAPI = map_list_of
(e_cmovae, "cmovae")
(e_cmova, "cmova")
(e_cmovne, "cmovne")
(e_cmovng, "cmovng")
(e_cmovle, "cmovle")
(e_cmovnge, "cmovnge")
(e_cmovnl, "cmovnl")
(e_cmovno, "cmovno")
Expand Down Expand Up @@ -2069,7 +2069,7 @@ void ia32_instruction::initFlagTable(dyn_hash_map<entryID, flagInfo>& flagTable_
flagTable_[e_cmovae] = flagInfo(list_of(x86::of)(x86::sf)(x86::zf)(x86::pf)(x86::cf), vector<Dyninst::MachRegister>());
flagTable_[e_cmova] = flagInfo(list_of(x86::of)(x86::sf)(x86::zf)(x86::pf)(x86::cf), vector<Dyninst::MachRegister>());
flagTable_[e_cmovne] = flagInfo(list_of(x86::of)(x86::sf)(x86::zf)(x86::pf)(x86::cf), vector<Dyninst::MachRegister>());
flagTable_[e_cmovng] = flagInfo(list_of(x86::of)(x86::sf)(x86::zf)(x86::pf)(x86::cf), vector<Dyninst::MachRegister>());
flagTable_[e_cmovle] = flagInfo(list_of(x86::of)(x86::sf)(x86::zf)(x86::pf)(x86::cf), vector<Dyninst::MachRegister>());
flagTable_[e_cmovnge] = flagInfo(list_of(x86::of)(x86::sf)(x86::zf)(x86::pf)(x86::cf), vector<Dyninst::MachRegister>());
flagTable_[e_cmovnl] = flagInfo(list_of(x86::of)(x86::sf)(x86::zf)(x86::pf)(x86::cf), vector<Dyninst::MachRegister>());
flagTable_[e_cmovno] = flagInfo(list_of(x86::of)(x86::sf)(x86::zf)(x86::pf)(x86::cf), vector<Dyninst::MachRegister>());
Expand Down Expand Up @@ -2620,7 +2620,7 @@ static ia32_entry twoByteMap[256] = {
{ e_No_Entry, t_sse_vex_mult, SSEVEX4B, false, { Zz, Zz, Zz }, 0, 0, 0 },
{ e_cmovnge, t_done, 0, true, { Gv, Ev, Zz }, 0, s1RW2R | (fCOND << FPOS), 0 },
{ e_cmovnl, t_done, 0, true, { Gv, Ev, Zz }, 0, s1RW2R | (fCOND << FPOS), 0 },
{ e_cmovng, t_done, 0, true, { Gv, Ev, Zz }, 0, s1RW2R | (fCOND << FPOS), 0 },
{ e_cmovle, t_done, 0, true, { Gv, Ev, Zz }, 0, s1RW2R | (fCOND << FPOS), 0 },
{ e_cmovnl, t_done, 0, true, { Gv, Ev, Zz }, 0, s1RW2R | (fCOND << FPOS), 0 },
/* 50 */
{ e_No_Entry, t_sse, SSE50, true, { Zz, Zz, Zz }, 0, 0, 0 },
Expand Down
2 changes: 1 addition & 1 deletion dataflowAPI/src/convertOpcodes.C
Expand Up @@ -254,7 +254,7 @@ X86InstructionKind RoseInsnX86Factory::convertKind(entryID opcode, prefixEntryID
return x86_cmova;
case e_cmovne:
return x86_cmovne;
case e_cmovng:
case e_cmovle:
return x86_cmovle;
case e_cmovnge:
return x86_cmovl;
Expand Down

0 comments on commit 28b31c4

Please sign in to comment.