Fix JIT disasm for xor reg, reg (#47980)
authorPent Ploompuu <kaalikas@gmail.com>
Wed, 10 Feb 2021 19:13:07 +0000 (21:13 +0200)
committerGitHub <noreply@github.com>
Wed, 10 Feb 2021 19:13:07 +0000 (11:13 -0800)
src/coreclr/jit/emitxarch.cpp

index a6b3d4a..d09ed44 100644 (file)
@@ -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;