diff options
author | Andy Ayers <andya@microsoft.com> | 2017-12-08 15:10:25 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-08 15:10:25 -0800 |
commit | d636649345f1f512be2f617564503a25f655757b (patch) | |
tree | f5f725a690d11c15f5ea7d10f3b3a9500bbff8aa /src/vm/i386 | |
parent | ddab65b2643ec2c3b7a376f4f44a05073124b732 (diff) | |
download | coreclr-d636649345f1f512be2f617564503a25f655757b.tar.gz coreclr-d636649345f1f512be2f617564503a25f655757b.tar.bz2 coreclr-d636649345f1f512be2f617564503a25f655757b.zip |
Jit: fix long shift helper for overly long shift counts (#15443)
Reduce shift amount modulo 64 to match behavior on other platforms and the
jit optimizer.
Also, fix IL in related test case so it is valid for 32 bits too.
Also, make these two tests pri-0 so they get run with regular CI testing.
Fixes #15442.
Diffstat (limited to 'src/vm/i386')
-rw-r--r-- | src/vm/i386/jithelp.asm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vm/i386/jithelp.asm b/src/vm/i386/jithelp.asm index 5d64b18c94..a4bbe1ccf7 100644 --- a/src/vm/i386/jithelp.asm +++ b/src/vm/i386/jithelp.asm @@ -483,6 +483,8 @@ ret ALIGN 16 PUBLIC JIT_LLsh JIT_LLsh PROC +; Reduce shift amount mod 64 + and ecx, 63 ; Handle shifts of between bits 0 and 31 cmp ecx, 32 jae short LLshMORE32 |