Commit 1feed51c by Gavin Romig-Koch Committed by Gavin Romig-Koch

mips.md ([u]divmodsi4,[u]divmoddi4,[u]divsi3,[u]divdi3, [...]): Don't copy the…

mips.md ([u]divmodsi4,[u]divmoddi4,[u]divsi3,[u]divdi3, [...]): Don't copy the "zero" argument to a register before calling gen_div_trap.

       * config/mips/mips.md ([u]divmodsi4,[u]divmoddi4,[u]divsi3,[u]divdi3,
	[u]modsi3,[u]moddi3) : Don't copy the "zero" argument to a register
       	before calling gen_div_trap.

From-SVN: r25019
parent 333dc731
Thu Feb 4 10:46:30 1999 Gavin Romig-Koch <gavin@cygnus.com>
* config/mips/mips.md ([u]divmodsi4,[u]divmoddi4,[u]divsi3,[u]divdi3,
[u]modsi3,[u]moddi3) : Don't copy the "zero" argument to a register
before calling gen_div_trap.
Wed Feb 3 21:56:27 1999 Jeffrey A Law (law@cygnus.com) Wed Feb 3 21:56:27 1999 Jeffrey A Law (law@cygnus.com)
* configure.in (hppa1.1-*-*, hppa2*-*): Use symbolic value rather * configure.in (hppa1.1-*-*, hppa2*-*): Use symbolic value rather
......
...@@ -2248,7 +2248,7 @@ ...@@ -2248,7 +2248,7 @@
if (!TARGET_NO_CHECK_ZERO_DIV) if (!TARGET_NO_CHECK_ZERO_DIV)
{ {
emit_insn (gen_div_trap (operands[2], emit_insn (gen_div_trap (operands[2],
copy_to_mode_reg (SImode, GEN_INT (0)), GEN_INT (0),
GEN_INT (0x7))); GEN_INT (0x7)));
} }
if (TARGET_CHECK_RANGE_DIV) if (TARGET_CHECK_RANGE_DIV)
...@@ -2298,7 +2298,7 @@ ...@@ -2298,7 +2298,7 @@
if (!TARGET_NO_CHECK_ZERO_DIV) if (!TARGET_NO_CHECK_ZERO_DIV)
{ {
emit_insn (gen_div_trap (operands[2], emit_insn (gen_div_trap (operands[2],
copy_to_mode_reg (DImode, GEN_INT (0)), GEN_INT (0),
GEN_INT (0x7))); GEN_INT (0x7)));
} }
if (TARGET_CHECK_RANGE_DIV) if (TARGET_CHECK_RANGE_DIV)
...@@ -2348,7 +2348,7 @@ ...@@ -2348,7 +2348,7 @@
if (!TARGET_NO_CHECK_ZERO_DIV) if (!TARGET_NO_CHECK_ZERO_DIV)
{ {
emit_insn (gen_div_trap (operands[2], emit_insn (gen_div_trap (operands[2],
copy_to_mode_reg (SImode, GEN_INT (0)), GEN_INT (0),
GEN_INT (0x7))); GEN_INT (0x7)));
} }
...@@ -2389,7 +2389,7 @@ ...@@ -2389,7 +2389,7 @@
if (!TARGET_NO_CHECK_ZERO_DIV) if (!TARGET_NO_CHECK_ZERO_DIV)
{ {
emit_insn (gen_div_trap (operands[2], emit_insn (gen_div_trap (operands[2],
copy_to_mode_reg (DImode, GEN_INT (0)), GEN_INT (0),
GEN_INT (0x7))); GEN_INT (0x7)));
} }
...@@ -2516,7 +2516,7 @@ ...@@ -2516,7 +2516,7 @@
if (!TARGET_NO_CHECK_ZERO_DIV) if (!TARGET_NO_CHECK_ZERO_DIV)
{ {
emit_insn (gen_div_trap (operands[2], emit_insn (gen_div_trap (operands[2],
copy_to_mode_reg (SImode, GEN_INT (0)), GEN_INT (0),
GEN_INT (0x7))); GEN_INT (0x7)));
} }
if (TARGET_CHECK_RANGE_DIV) if (TARGET_CHECK_RANGE_DIV)
...@@ -2559,7 +2559,7 @@ ...@@ -2559,7 +2559,7 @@
if (!TARGET_NO_CHECK_ZERO_DIV) if (!TARGET_NO_CHECK_ZERO_DIV)
{ {
emit_insn (gen_div_trap (operands[2], emit_insn (gen_div_trap (operands[2],
copy_to_mode_reg (DImode, GEN_INT (0)), GEN_INT (0),
GEN_INT (0x7))); GEN_INT (0x7)));
} }
if (TARGET_CHECK_RANGE_DIV) if (TARGET_CHECK_RANGE_DIV)
...@@ -2602,7 +2602,7 @@ ...@@ -2602,7 +2602,7 @@
if (!TARGET_NO_CHECK_ZERO_DIV) if (!TARGET_NO_CHECK_ZERO_DIV)
{ {
emit_insn (gen_div_trap (operands[2], emit_insn (gen_div_trap (operands[2],
copy_to_mode_reg (SImode, GEN_INT (0)), GEN_INT (0),
GEN_INT (0x7))); GEN_INT (0x7)));
} }
if (TARGET_CHECK_RANGE_DIV) if (TARGET_CHECK_RANGE_DIV)
...@@ -2645,7 +2645,7 @@ ...@@ -2645,7 +2645,7 @@
if (!TARGET_NO_CHECK_ZERO_DIV) if (!TARGET_NO_CHECK_ZERO_DIV)
{ {
emit_insn (gen_div_trap (operands[2], emit_insn (gen_div_trap (operands[2],
copy_to_mode_reg (DImode, GEN_INT (0)), GEN_INT (0),
GEN_INT (0x7))); GEN_INT (0x7)));
} }
if (TARGET_CHECK_RANGE_DIV) if (TARGET_CHECK_RANGE_DIV)
...@@ -2688,7 +2688,7 @@ ...@@ -2688,7 +2688,7 @@
if (!TARGET_NO_CHECK_ZERO_DIV) if (!TARGET_NO_CHECK_ZERO_DIV)
{ {
emit_insn (gen_div_trap (operands[2], emit_insn (gen_div_trap (operands[2],
copy_to_mode_reg (SImode, GEN_INT (0)), GEN_INT (0),
GEN_INT (0x7))); GEN_INT (0x7)));
} }
...@@ -2722,7 +2722,7 @@ ...@@ -2722,7 +2722,7 @@
if (!TARGET_NO_CHECK_ZERO_DIV) if (!TARGET_NO_CHECK_ZERO_DIV)
{ {
emit_insn (gen_div_trap (operands[2], emit_insn (gen_div_trap (operands[2],
copy_to_mode_reg (DImode, GEN_INT (0)), GEN_INT (0),
GEN_INT (0x7))); GEN_INT (0x7)));
} }
...@@ -2756,7 +2756,7 @@ ...@@ -2756,7 +2756,7 @@
if (!TARGET_NO_CHECK_ZERO_DIV) if (!TARGET_NO_CHECK_ZERO_DIV)
{ {
emit_insn (gen_div_trap (operands[2], emit_insn (gen_div_trap (operands[2],
copy_to_mode_reg (SImode, GEN_INT (0)), GEN_INT (0),
GEN_INT (0x7))); GEN_INT (0x7)));
} }
...@@ -2790,7 +2790,7 @@ ...@@ -2790,7 +2790,7 @@
if (!TARGET_NO_CHECK_ZERO_DIV) if (!TARGET_NO_CHECK_ZERO_DIV)
{ {
emit_insn (gen_div_trap (operands[2], emit_insn (gen_div_trap (operands[2],
copy_to_mode_reg (DImode, GEN_INT (0)), GEN_INT (0),
GEN_INT (0x7))); GEN_INT (0x7)));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment