[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[dotgnu-pnet-commits] libjit ChangeLog jit/jit-rules-x86.sel jit/jit-...
From: |
Aleksey Demakov |
Subject: |
[dotgnu-pnet-commits] libjit ChangeLog jit/jit-rules-x86.sel jit/jit-... |
Date: |
Fri, 16 Jun 2006 02:35:17 +0000 |
CVSROOT: /sources/dotgnu-pnet
Module name: libjit
Changes by: Aleksey Demakov <avd> 06/06/16 02:35:16
Modified files:
. : ChangeLog
jit : jit-rules-x86.sel jit-rules-x86.ins
Log message:
Fix JIT_OP_IDIV and JIT_OP_IREM rules for the divisor value of -1.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/libjit/ChangeLog?cvsroot=dotgnu-pnet&r1=1.235&r2=1.236
http://cvs.savannah.gnu.org/viewcvs/libjit/jit/jit-rules-x86.sel?cvsroot=dotgnu-pnet&r1=1.44&r2=1.45
http://cvs.savannah.gnu.org/viewcvs/libjit/jit/jit-rules-x86.ins?cvsroot=dotgnu-pnet&r1=1.6&r2=1.7
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/dotgnu-pnet/libjit/ChangeLog,v
retrieving revision 1.235
retrieving revision 1.236
diff -u -b -r1.235 -r1.236
--- ChangeLog 8 Jun 2006 17:11:26 -0000 1.235
+++ ChangeLog 16 Jun 2006 02:35:16 -0000 1.236
@@ -1,3 +1,8 @@
+2006-06-16 Aleksey Demakov <address@hidden>
+
+ * jit/jit-rules-x86.sel, jit/jit-rules-x86.ins: fix JIT_OP_IDIV and
+ JIT_OP_IREM rules for the divisor value of -1.
+
2006-06-09 Aleksey Demakov <address@hidden>
* jit/jit-rules-x86.ins: rewrite JIT_OP_STORE_RELATIVE_BYTE,
Index: jit/jit-rules-x86.sel
===================================================================
RCS file: /sources/dotgnu-pnet/libjit/jit/jit-rules-x86.sel,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -b -r1.44 -r1.45
--- jit/jit-rules-x86.sel 1 May 2006 10:47:37 -0000 1.44
+++ jit/jit-rules-x86.sel 16 Jun 2006 02:35:16 -0000 1.45
@@ -449,8 +449,9 @@
{
/* Dividing by -1 gives an exception if the
argument
is minint, or simply negates for other
values */
- unsigned char *patch = inst;
+ unsigned char *patch;
x86_alu_reg_imm(inst, X86_CMP, $1, jit_min_int);
+ patch = inst;
x86_branch8(inst, X86_CC_NE, 0, 0);
inst = throw_builtin(inst, func,
JIT_RESULT_ARITHMETIC);
x86_patch(patch, inst);
@@ -911,8 +912,9 @@
{
/* Dividing by -1 gives an exception if the
argument
is minint, or simply gives a remainder of
zero */
- unsigned char *patch = inst;
+ unsigned char *patch;
x86_alu_reg_imm(inst, X86_CMP, $1, jit_min_int);
+ patch = inst;
x86_branch8(inst, X86_CC_NE, 0, 0);
inst = throw_builtin(inst, func,
JIT_RESULT_ARITHMETIC);
x86_patch(patch, inst);
Index: jit/jit-rules-x86.ins
===================================================================
RCS file: /sources/dotgnu-pnet/libjit/jit/jit-rules-x86.ins,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- jit/jit-rules-x86.ins 8 Jun 2006 18:32:12 -0000 1.6
+++ jit/jit-rules-x86.ins 16 Jun 2006 02:35:16 -0000 1.7
@@ -449,8 +449,9 @@
{
/* Dividing by -1 gives an exception if the
argument
is minint, or simply negates for other
values */
- unsigned char *patch = inst;
+ unsigned char *patch;
x86_alu_reg_imm(inst, X86_CMP, $1, jit_min_int);
+ patch = inst;
x86_branch8(inst, X86_CC_NE, 0, 0);
inst = throw_builtin(inst, func,
JIT_RESULT_ARITHMETIC);
x86_patch(patch, inst);
@@ -911,8 +912,9 @@
{
/* Dividing by -1 gives an exception if the
argument
is minint, or simply gives a remainder of
zero */
- unsigned char *patch = inst;
+ unsigned char *patch;
x86_alu_reg_imm(inst, X86_CMP, $1, jit_min_int);
+ patch = inst;
x86_branch8(inst, X86_CC_NE, 0, 0);
inst = throw_builtin(inst, func,
JIT_RESULT_ARITHMETIC);
x86_patch(patch, inst);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [dotgnu-pnet-commits] libjit ChangeLog jit/jit-rules-x86.sel jit/jit-...,
Aleksey Demakov <=