re PR target/34831 (ICE on gcc.dg/pr34233.c for MIPS)

gcc/
	PR target/34831
	* config/mips/mips.md (div<mode>3): Use <recip_condition> when
	deciding whether to use reciprocal instructions.

gcc/testsuite/
	PR target/34831
	* gcc.target/mips/pr34831.c: New test.

From-SVN: r131662
This commit is contained in:
Richard Sandiford 2008-01-20 00:05:07 +00:00 committed by Richard Sandiford
parent 2f94c6715b
commit 0decaff6a5
4 changed files with 19 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
PR target/34831
* config/mips/mips.md (div<mode>3): Use <recip_condition> when
deciding whether to use reciprocal instructions.
2008-01-19 Uros Bizjak <ubizjak@gmail.com>
* dwarf2out.c (dwarf2out_switch_text_section): Do not call

View File

@ -1936,7 +1936,7 @@
"<divide_condition>"
{
if (const_1_operand (operands[1], <MODE>mode))
if (!(ISA_HAS_FP4 && flag_unsafe_math_optimizations))
if (!(<recip_condition> && flag_unsafe_math_optimizations))
operands[1] = force_reg (<MODE>mode, operands[1]);
})

View File

@ -1,3 +1,8 @@
2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
PR target/34831
* gcc.target/mips/pr34831.c: New test.
2008-01-19 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/34817

View File

@ -0,0 +1,7 @@
/* { dg-mips-options "-ffast-math -mips64 -mgp32" } */
double
foo (void)
{
return __builtin_pow (0.0, -1.5);
}