Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Botsch Nielsen <Jakob.botsch.nielsen@gmail.com>2021-07-10 13:38:33 +0300
committerGitHub <noreply@github.com>2021-07-10 13:38:33 +0300
commit65b472a0f31f2b878601b41a344754ec3e776d1d (patch)
tree4fc86b3c605cf8b04619e684face01079676685d /src/coreclr/jit
parentbb394065f0136ce2bd3afb4349e1dbf46dc9012c (diff)
Handle a missing case in zero-extend peephole (#55129)
Diffstat (limited to 'src/coreclr/jit')
-rw-r--r--src/coreclr/jit/emitxarch.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/coreclr/jit/emitxarch.cpp b/src/coreclr/jit/emitxarch.cpp
index a0a5e3283d4..217f5f15aaf 100644
--- a/src/coreclr/jit/emitxarch.cpp
+++ b/src/coreclr/jit/emitxarch.cpp
@@ -296,6 +296,13 @@ bool emitter::AreUpper32BitsZero(regNumber reg)
return false;
}
+#ifdef TARGET_AMD64
+ if (id->idIns() == INS_movsxd)
+ {
+ return false;
+ }
+#endif
+
// movzx always zeroes the upper 32 bits.
if (id->idIns() == INS_movzx)
{