]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
JIT: Use REX prefix for RSP usage in raw_fsinh_rr (x86-64)
authorFrode Solheim <frode@fs-uae.net>
Thu, 24 Sep 2015 16:07:47 +0000 (18:07 +0200)
committerFrode Solheim <frode@fs-uae.net>
Thu, 24 Sep 2015 18:24:22 +0000 (20:24 +0200)
jit/codegen_x86.cpp

index 1363d8d3634bbe319a14707411688cf927ff3865..2637c6ab34f526bcd3ab335f9b7dc4005bf6dd24 100644 (file)
@@ -5016,6 +5016,9 @@ LOWFUNC(NONE,NONE,2,raw_fsinh_rr,(FW d, FR s))
        if (tr>=0) {
                emit_byte(0xd9);
                emit_byte(0xca); /* fxch swap with temp-reg */
+#ifdef CPU_x86_64
+               emit_byte(0x48);  /* Use rsp register */
+#endif
                emit_byte(0x83);
                emit_byte(0xc4);
                emit_byte(0xf4); /* add -12 to esp */
@@ -5063,6 +5066,9 @@ LOWFUNC(NONE,NONE,2,raw_fsinh_rr,(FW d, FR s))
                emit_byte(0xca); /* fxch swap temp-reg with e^-x in tr */
                emit_byte(0xde);
                emit_byte(0xe9); /* fsubp (e^x)-(e^-x) */
+#ifdef CPU_x86_64
+               emit_byte(0x48); /* Use rsp register */
+#endif
                emit_byte(0x83);
                emit_byte(0xc4);
                emit_byte(0x0c); /* delayed add +12 to esp */