+2008-03-31 Klaus Treichel <ktreichel@web.de>
+
+ * jit/jit-rules-x86.ins: Fix the sign opcode for integers and the
+ constant case for longs.
+
2008-03-30 Klaus Treichel <ktreichel@web.de>
* jit/jit-gen-x86-64.h: Add macros for the test, imul, cdw/cdq/cqo
{
x86_mov_reg_imm(inst, $1, -1);
}
+ else if($2 > 0)
+ {
+ x86_mov_reg_imm(inst, $1, 1);
+ }
else
{
x86_clear_reg(inst, $1);
}
}
- [reg] -> {
+ [reg, scratch reg] -> {
+ x86_clear_reg(inst, $2);
+ x86_test_reg_reg(inst, $1, $1);
+ x86_set_reg(inst,X86_CC_GT, $2, 1);
x86_shift_reg_imm(inst, X86_SAR, $1, 31);
+ x86_alu_reg_reg(inst, X86_ADD, $1, $2);
}
JIT_OP_LSIGN:
{
x86_mov_reg_imm(inst, $1, -1);
}
+ else if(value > 0)
+ {
+ x86_mov_reg_imm(inst, $1, 1);
+ }
else
{
x86_clear_reg(inst, $1);