Skip to content

Commit

Permalink
Make setnz an alias of setne
Browse files Browse the repository at this point in the history
  • Loading branch information
hainest committed Nov 24, 2023
1 parent cd7e0d9 commit 5676906
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 @@ -585,10 +585,11 @@ e_setge,
e_setnl = e_setge,
e_setl,
e_setle,
e_setne,
e_setnz = e_setne,
e_setno,
e_setnp,
e_setns,
e_setnz,
e_seto,
e_setp,
e_sets,
Expand Down
6 changes: 3 additions & 3 deletions common/src/arch-x86.C
Expand Up @@ -1357,7 +1357,7 @@ COMMON_EXPORT dyn_hash_map<entryID, std::string> entryNames_IAPI = map_list_of
(e_setno, "setno")
(e_setnp, "setnp")
(e_setns, "setns")
(e_setnz, "setnz")
(e_setne, "setne")
(e_seto, "seto")
(e_setp, "setp")
(e_sets, "sets")
Expand Down Expand Up @@ -2164,7 +2164,7 @@ list_of(x86::of)(x86::sf)(x86::zf)(x86::af)(x86::pf)(x86::cf)(x86::tf)(x86::if_)
flagTable_[e_setno] = flagInfo(list_of(x86::of)(x86::sf)(x86::zf)(x86::pf)(x86::cf), vector<Dyninst::MachRegister>());
flagTable_[e_setnp] = flagInfo(list_of(x86::of)(x86::sf)(x86::zf)(x86::pf)(x86::cf), vector<Dyninst::MachRegister>());
flagTable_[e_setns] = flagInfo(list_of(x86::of)(x86::sf)(x86::zf)(x86::pf)(x86::cf), vector<Dyninst::MachRegister>());
flagTable_[e_setnz] = flagInfo(list_of(x86::of)(x86::sf)(x86::zf)(x86::pf)(x86::cf), vector<Dyninst::MachRegister>());
flagTable_[e_setne] = flagInfo(list_of(x86::of)(x86::sf)(x86::zf)(x86::pf)(x86::cf), vector<Dyninst::MachRegister>());
flagTable_[e_seto] = flagInfo(list_of(x86::of)(x86::sf)(x86::zf)(x86::pf)(x86::cf), vector<Dyninst::MachRegister>());
flagTable_[e_setp] = flagInfo(list_of(x86::of)(x86::sf)(x86::zf)(x86::pf)(x86::cf), vector<Dyninst::MachRegister>());
flagTable_[e_sets] = flagInfo(list_of(x86::of)(x86::sf)(x86::zf)(x86::pf)(x86::cf), vector<Dyninst::MachRegister>());
Expand Down Expand Up @@ -2698,7 +2698,7 @@ static ia32_entry twoByteMap[256] = {
{ e_No_Entry, t_sse_vex_mult, SSEVEX92, false, { Zz, Zz, Zz }, 0, 0, 0 },
{ e_No_Entry, t_sse_vex_mult, SSEVEX93, false, { Zz, Zz, Zz }, 0, 0, 0 },
{ e_setz, t_done, 0, true, { Eb, Zz, Zz }, 0, s1W | (fCOND << FPOS), 0 },
{ e_setnz, t_done, 0, true, { Eb, Zz, Zz }, 0, s1W | (fCOND << FPOS), 0 },
{ e_setne, t_done, 0, true, { Eb, Zz, Zz }, 0, s1W | (fCOND << FPOS), 0 },
{ e_setbe, t_done, 0, true, { Eb, Zz, Zz }, 0, s1W | (fCOND << FPOS), 0 },
{ e_seta, t_done, 0, true, { Eb, Zz, Zz }, 0, s1W | (fCOND << FPOS), 0 },
/* 98 */
Expand Down
2 changes: 1 addition & 1 deletion dataflowAPI/src/convertOpcodes.C
Expand Up @@ -832,7 +832,7 @@ X86InstructionKind RoseInsnX86Factory::convertKind(entryID opcode, prefixEntryID
return x86_setpo;
case e_setns:
return x86_setns;
case e_setnz:
case e_setne:
return x86_setne;
case e_seto:
return x86_seto;
Expand Down

0 comments on commit 5676906

Please sign in to comment.