summaryrefslogtreecommitdiff
path: root/src/vm/i386
diff options
context:
space:
mode:
authorBruce Forstall <brucefo@microsoft.com>2018-01-23 19:51:43 -0800
committerGitHub <noreply@github.com>2018-01-23 19:51:43 -0800
commitc2c36eca826aba5616110a2090d95a64ddca19cb (patch)
tree697ec9835e26edf5c5f5e8cec783c2b8316fa4e8 /src/vm/i386
parentfacdc8b97f73973fb416ed13e4b9dd9a255864bf (diff)
parentca397e5f57a649ad3bcc621cbb02354670f87a08 (diff)
downloadcoreclr-c2c36eca826aba5616110a2090d95a64ddca19cb.tar.gz
coreclr-c2c36eca826aba5616110a2090d95a64ddca19cb.tar.bz2
coreclr-c2c36eca826aba5616110a2090d95a64ddca19cb.zip
Merge pull request #15949 from mikedn/shift-inconsistency
Fix 64 bit shift inconsistencies (on 32 bit targets)
Diffstat (limited to 'src/vm/i386')
-rw-r--r--src/vm/i386/jithelp.asm4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vm/i386/jithelp.asm b/src/vm/i386/jithelp.asm
index a4bbe1ccf7..27b866881a 100644
--- a/src/vm/i386/jithelp.asm
+++ b/src/vm/i386/jithelp.asm
@@ -520,6 +520,8 @@ JIT_LLsh ENDP
ALIGN 16
PUBLIC JIT_LRsh
JIT_LRsh PROC
+; Reduce shift amount mod 64
+ and ecx, 63
; Handle shifts of between bits 0 and 31
cmp ecx, 32
jae short LRshMORE32
@@ -554,6 +556,8 @@ JIT_LRsh ENDP
ALIGN 16
PUBLIC JIT_LRsz
JIT_LRsz PROC
+; Reduce shift amount mod 64
+ and ecx, 63
; Handle shifts of between bits 0 and 31
cmp ecx, 32
jae short LRszMORE32