mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:17:45 +00:00
LibX86: Don't print repz prefix for SSE instructions
This commit is contained in:
parent
d03a6cc6c6
commit
f951849fd5
1 changed files with 2 additions and 1 deletions
|
@ -1418,7 +1418,8 @@ String Instruction::to_string(u32 origin, SymbolProvider const* symbol_provider,
|
|||
builder.append(m_o32 ? "o32 " : "o16 ");
|
||||
if (has_lock_prefix())
|
||||
builder.append("lock ");
|
||||
if (has_rep_prefix())
|
||||
// Note: SSE instructions use these to toggle between packed and single data
|
||||
if (has_rep_prefix() && !(m_descriptor->format > __SSE && m_descriptor->format < __EndFormatsWithRMByte))
|
||||
builder.append(m_rep_prefix == Prefix::REPNZ ? "repnz " : "repz ");
|
||||
to_string_internal(builder, origin, symbol_provider, x32);
|
||||
return builder.to_string();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue