From: Frode Solheim Date: Thu, 24 Sep 2015 16:07:47 +0000 (+0200) Subject: JIT: Use REX prefix for RSP usage in raw_fsinh_rr (x86-64) X-Git-Tag: 3200~53^2~1 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=285727bb11c1feee337d59e82f1e941588fd3867;p=francis%2Fwinuae.git JIT: Use REX prefix for RSP usage in raw_fsinh_rr (x86-64) --- diff --git a/jit/codegen_x86.cpp b/jit/codegen_x86.cpp index 1363d8d3..2637c6ab 100644 --- a/jit/codegen_x86.cpp +++ b/jit/codegen_x86.cpp @@ -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 */