lightning.git - Portable just-in-time compiler library

index : lightning.git
Portable just-in-time compiler library
summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorpcpa <paulo.cesar.pereira.de.andrade@gmail.com>2015年02月17日 13:55:01 -0200
committerpcpa <paulo.cesar.pereira.de.andrade@gmail.com>2015年02月17日 13:55:01 -0200
commit9f72e661164ef4e2a26ba7a185b24574c57903cb (patch)
tree54ea9b0ee990151192ea98c454fc881369119f18 /lib
parent2597bf3c13e25907d9c8c96f9b39e711cf1f353d (diff)
downloadlightning-9f72e661164ef4e2a26ba7a185b24574c57903cb.tar.gz
X86: No longer make st7 available as a temporary
* include/lightning/jit_x86.h, lib/jit_x86-cpu.c, lib/jit_x86-x87.c: No longer make st(7) available. Need to keep one x87 slots empty to avoid exceptions. This has the side effect of no longer needing the hackish emms instruction before a function call.
Diffstat (limited to 'lib')
-rw-r--r--lib/jit_x86-cpu.c 4
-rw-r--r--lib/jit_x86-x87.c 1
2 files changed, 0 insertions, 5 deletions
diff --git a/lib/jit_x86-cpu.c b/lib/jit_x86-cpu.c
index fa4eade..a26f32a 100644
--- a/lib/jit_x86-cpu.c
+++ b/lib/jit_x86-cpu.c
@@ -3390,9 +3390,6 @@ _bxsubi_u(jit_state_t *_jit, jit_word_t i0, jit_int32_t r0, jit_word_t i1)
static void
_callr(jit_state_t *_jit, jit_int32_t r0)
{
-#if __X32
- emms();
-#endif
rex(0, 0, _NOREG, _NOREG, r0);
ic(0xff);
mrm(0x03, 0x02, r7(r0));
@@ -3411,7 +3408,6 @@ _calli(jit_state_t *_jit, jit_word_t i0)
jit_unget_reg(reg);
#else
jit_word_t w;
- emms();
ic(0xe8);
w = i0 - (_jit->pc.w + 4);
ii(w);
diff --git a/lib/jit_x86-x87.c b/lib/jit_x86-x87.c
index 5b45c26..075d3bc 100644
--- a/lib/jit_x86-x87.c
+++ b/lib/jit_x86-x87.c
@@ -34,7 +34,6 @@
# define _ST4_REGNO 4
# define _ST5_REGNO 5
# define _ST6_REGNO 6
-# define _ST7_REGNO 7
# define x87rx(code, md, rb, ri, ms) _x87rx(_jit, code, md, rb, ri, ms)
# define fldcwm(md, rb, ri, ms) x87rx(015, md, rb, ri, ms)
# define fstcwm(md, rb, ri, ms) _fstcwm(_jit, md, rb, ri, ms)
generated by cgit v1.2.3 (git 2.25.1) at 2025年10月03日 03:09:34 +0000

AltStyle によって変換されたページ (->オリジナル) /