[Bug rtl-optimization/50396] SSE division by zero generates incorrect code with optimizations enabled

2011-12-23 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50396

Richard Guenther  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
  Known to work||4.6.3, 4.7.0
 Resolution||FIXED
   Target Milestone|--- |4.6.3
  Known to fail|4.7.0   |4.6.2
   Severity|major   |normal

--- Comment #8 from Richard Guenther  2011-12-23 
09:19:30 UTC ---
Fixed for 4.6.3.


[Bug rtl-optimization/50396] SSE division by zero generates incorrect code with optimizations enabled

2011-12-23 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50396

--- Comment #7 from Richard Guenther  2011-12-23 
09:16:16 UTC ---
Author: rguenth
Date: Fri Dec 23 09:16:08 2011
New Revision: 182654

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182654
Log:
2011-12-23  Richard Guenther  

PR rtl-optimization/50396
* simplify-rtx.c (simplify_binary_operation_1): Properly
guard code that only works for integers.

* gcc.dg/torture/pr50396.c: New testcase.

Added:
branches/gcc-4_6-branch/gcc/testsuite/gcc.dg/torture/pr50396.c
Modified:
branches/gcc-4_6-branch/gcc/ChangeLog
branches/gcc-4_6-branch/gcc/simplify-rtx.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog


[Bug rtl-optimization/50396] SSE division by zero generates incorrect code with optimizations enabled

2011-12-23 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50396

--- Comment #6 from Richard Guenther  2011-12-23 
09:10:27 UTC ---
Author: rguenth
Date: Fri Dec 23 09:10:18 2011
New Revision: 182653

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182653
Log:
2011-12-23  Richard Guenther  

PR rtl-optimization/50396
* simplify-rtx.c (simplify_binary_operation_1): Properly
guard code that only works for integers.

* gcc.dg/torture/pr50396.c: New testcase.

Added:
trunk/gcc/testsuite/gcc.dg/torture/pr50396.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/simplify-rtx.c
trunk/gcc/testsuite/ChangeLog


[Bug rtl-optimization/50396] SSE division by zero generates incorrect code with optimizations enabled

2011-12-22 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50396

Richard Guenther  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
 AssignedTo|unassigned at gcc dot   |rguenth at gcc dot gnu.org
   |gnu.org |

--- Comment #5 from Richard Guenther  2011-12-22 
15:14:32 UTC ---
Sorry, forgot about this issue.


[Bug rtl-optimization/50396] SSE division by zero generates incorrect code with optimizations enabled

2011-12-22 Thread loufoque at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50396

Mathias Gaunard  changed:

   What|Removed |Added

 CC||loufoque at gmail dot com

--- Comment #4 from Mathias Gaunard  2011-12-22 
15:01:02 UTC ---
What's missing to get this fixed?

Previous comment suggests the fix is trivial.


[Bug rtl-optimization/50396] SSE division by zero generates incorrect code with optimizations enabled

2011-10-20 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50396

--- Comment #3 from Richard Guenther  2011-10-20 
09:13:21 UTC ---
case DIV:
  /* Handle floating point and integers separately.  */
  if (SCALAR_FLOAT_MODE_P (mode))
{

should probably be FLOAT_MODE_P (mode).


[Bug rtl-optimization/50396] SSE division by zero generates incorrect code with optimizations enabled

2011-10-20 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50396

Richard Guenther  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2011-10-20
  Component|target  |rtl-optimization
Version|unknown |4.7.0
 Ever Confirmed|0   |1
  Known to fail||4.5.2, 4.7.0

--- Comment #2 from Richard Guenther  2011-10-20 
09:11:06 UTC ---
Confirmed.  Broken by CSE1 on RTL at -O1.