]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
JIT: Use raw_fmovi_mr instead of raw_fmovi_mrb on 64-bit (for now)
authorFrode Solheim <frode@fs-uae.net>
Tue, 22 Sep 2015 18:35:22 +0000 (20:35 +0200)
committerFrode Solheim <frode@fs-uae.net>
Tue, 22 Sep 2015 18:35:22 +0000 (20:35 +0200)
jit/codegen_x86.cpp

index e68726c92d0a56f0bd8018ffb2e4c8ccac20babf..8a90bee7a08cb14298187e6296b3e9305bf31aee 100644 (file)
@@ -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))