sh.md (divsi_inv_m3): Handle zero dividend specially.
* config/sh/sh.md (divsi_inv_m3): Handle zero dividend specially. From-SVN: r130357
This commit is contained in:
parent
6c01f02b2c
commit
cd9a21ca0b
2 changed files with 11 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2007-11-22 Kaz Kojima <kkojima@gcc.gnu.org>
|
||||
|
||||
* config/sh/sh.md (divsi_inv_m3): Handle zero dividend
|
||||
specially.
|
||||
|
||||
2007-11-22 Uros Bizjak <ubizjak@gmail.com>
|
||||
|
||||
* config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Change checking
|
||||
|
|
|
@ -2471,6 +2471,12 @@ norm32: r25
|
|||
rtx scratch1 = operands[8];
|
||||
rtx scratch2 = operands[9];
|
||||
|
||||
if (satisfies_constraint_N (dividend))
|
||||
{
|
||||
emit_move_insn (result, dividend);
|
||||
DONE;
|
||||
}
|
||||
|
||||
emit_insn (gen_mulsidi3_media (scratch0, inv1, dividend));
|
||||
emit_insn (gen_mulsidi3_media (scratch1, inv2, dividend));
|
||||
emit_insn (gen_ashrdi3_media (scratch2, scratch0, GEN_INT (63)));
|
||||
|
|
Loading…
Add table
Reference in a new issue