Skip to content

Commit

Permalink
Fix JIT disasm for xor reg, reg (dotnet#47980)
Browse files Browse the repository at this point in the history
  • Loading branch information
pentp authored Feb 10, 2021
1 parent a9c5ead commit 2b95ec6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/coreclr/jit/emitxarch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11541,6 +11541,10 @@ BYTE* emitter::emitOutputRR(BYTE* dst, instrDesc* id)
{
code = AddRexWPrefix(ins, code);
}
else
{
id->idOpSize(EA_4BYTE);
}

// Set the 'w' bit to get the large version
code |= 0x1;
Expand Down

0 comments on commit 2b95ec6

Please sign in to comment.