diff options
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/mips/mips.md | 2 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/mips/pr34831.c | 7 |
4 files changed, 19 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ec25be5..6340525 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config/mips/mips.md b/gcc/config/mips/mips.md index 864013a..21398c6 100644 --- a/gcc/config/mips/mips.md +++ b/gcc/config/mips/mips.md @@ -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]); }) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5ea52a2..6909a8c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 diff --git a/gcc/testsuite/gcc.target/mips/pr34831.c b/gcc/testsuite/gcc.target/mips/pr34831.c new file mode 100644 index 0000000..3cdcd4a --- /dev/null +++ b/gcc/testsuite/gcc.target/mips/pr34831.c @@ -0,0 +1,7 @@ +/* { dg-mips-options "-ffast-math -mips64 -mgp32" } */ + +double +foo (void) +{ + return __builtin_pow (0.0, -1.5); +} |