From: Mike Pall Date: Tue, 29 Dec 2009 01:16:52 +0000 (+0100) Subject: Fix x64 lj_vm_pow_sse(). X-Git-Tag: v2.0.0-beta3~160 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52f310bd3e214f876b4681d7ea3e5d6472feba5c;p=thirdparty%2FLuaJIT.git Fix x64 lj_vm_pow_sse(). --- diff --git a/src/buildvm_x86.dasc b/src/buildvm_x86.dasc index 3b89debb..53ce9c99 100644 --- a/src/buildvm_x86.dasc +++ b/src/buildvm_x86.dasc @@ -3022,9 +3022,9 @@ static void build_subroutines(BuildCtx *ctx, int cmov, int sse) |8: // FP/FP power function x^y. |.if X64 | movd rax, xmm1; shl rax, 1 - | ror rax, 32; cmp rax, 0xffe00000; je >2 // x^+-Inf? + | rol rax, 12; cmp rax, 0xffe; je >2 // x^+-Inf? | movd rax, xmm0; shl rax, 1; je >4 // +-0^y? - | ror rax, 32; cmp rax, 0xffe00000; je >5 // +-Inf^y? + | rol rax, 12; cmp rax, 0xffe; je >5 // +-Inf^y? | .if X64WIN | movsd qword [rsp+16], xmm1 // Use scratch area. | movsd qword [rsp+8], xmm0