diff options
author | Bruce Forstall <brucefo@microsoft.com> | 2018-01-23 19:51:43 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-23 19:51:43 -0800 |
commit | c2c36eca826aba5616110a2090d95a64ddca19cb (patch) | |
tree | 697ec9835e26edf5c5f5e8cec783c2b8316fa4e8 /src/vm/i386 | |
parent | facdc8b97f73973fb416ed13e4b9dd9a255864bf (diff) | |
parent | ca397e5f57a649ad3bcc621cbb02354670f87a08 (diff) | |
download | coreclr-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.asm | 4 |
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 |