diff options
author | Paolo Molaro <lupus@oddwiz.org> | 2003-11-30 21:51:06 +0300 |
---|---|---|
committer | Paolo Molaro <lupus@oddwiz.org> | 2003-11-30 21:51:06 +0300 |
commit | 150f825783964a90ba53db629a2baafaf88eb754 (patch) | |
tree | 68be147a0cc33f5c713dfbb41ab0b7f8d58b8652 | |
parent | f744323f8f93c4a57fa39124ff4030c9418d6eb0 (diff) |
Another small fix.
svn path=/trunk/mono/; revision=20634
-rw-r--r-- | mono/mini/mini-ppc.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mono/mini/mini-ppc.c b/mono/mini/mini-ppc.c index 4e743c15476..9414cd61c91 100644 --- a/mono/mini/mini-ppc.c +++ b/mono/mini/mini-ppc.c @@ -2365,8 +2365,11 @@ mono_arch_output_basic_block (MonoCompile *cfg, MonoBasicBlock *bb) break; case OP_SUB_IMM: // we add the negated value - g_assert (ppc_is_imm16 (-ins->inst_imm)); - ppc_addi (code, ins->dreg, ins->sreg1, -ins->inst_imm); + if (ppc_is_imm16 (-ins->inst_imm)) + ppc_addi (code, ins->dreg, ins->sreg1, -ins->inst_imm); + else + ppc_load (code, ppc_r11, ins->inst_imm); + ppc_subf (code, ins->dreg, ins->sreg2, ppc_r11); break; case OP_SBB_IMM: ppc_load (code, ppc_r11, ins->inst_imm); |