From 5f74827538fb135f1f63c4238ddfa1ee4822f7d2 Mon Sep 17 00:00:00 2001 From: Frode Solheim Date: Tue, 22 Sep 2015 20:35:22 +0200 Subject: [PATCH] JIT: Use raw_fmovi_mr instead of raw_fmovi_mrb on 64-bit (for now) --- jit/codegen_x86.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/jit/codegen_x86.cpp b/jit/codegen_x86.cpp index e68726c9..8a90bee7 100644 --- a/jit/codegen_x86.cpp +++ b/jit/codegen_x86.cpp @@ -4053,6 +4053,10 @@ LENDFUNC(NONE,WRITE,2,raw_fmovi_mr,(MEMW m, FR r)) LOWFUNC(NONE,WRITE,3,raw_fmovi_mrb,(MEMW m, FR r, double *bounds)) { +#ifdef CPU_x86_64 + /* FIXME: raw_fmovi_mrb is not 64-bit compatible yet. */ + raw_fmovi_mr(m, r); +#else /* Clamp value to the given range and convert to integer. ideally, the clamping should be done using two FCMOVs, but this requires two free fp registers, and we can only be sure @@ -4094,6 +4098,7 @@ LOWFUNC(NONE,WRITE,3,raw_fmovi_mrb,(MEMW m, FR r, double *bounds)) emit_byte(0xdb); emit_byte(0x1d); emit_long(m); +#endif } LENDFUNC(NONE,WRITE,3,raw_fmovi_mrb,(MEMW m, FR r, double *bounds)) -- 2.47.3