From: Frode Solheim Date: Tue, 22 Sep 2015 18:35:22 +0000 (+0200) Subject: JIT: Use raw_fmovi_mr instead of raw_fmovi_mrb on 64-bit (for now) X-Git-Tag: 3200~55^2~3 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=5f74827538fb135f1f63c4238ddfa1ee4822f7d2;p=francis%2Fwinuae.git JIT: Use raw_fmovi_mr instead of raw_fmovi_mrb on 64-bit (for now) --- 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))