From d636649345f1f512be2f617564503a25f655757b Mon Sep 17 00:00:00 2001 From: Andy Ayers Date: Fri, 8 Dec 2017 15:10:25 -0800 Subject: 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. --- src/vm/i386/jithelp.asm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/vm/i386') 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 -- cgit v1.2.3