[Bug tree-optimization/69308] ifcombine joins together floating point expression with side effects

2016-02-11 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69308 Richard Biener changed: What|Removed |Added Status|ASSIGNED|RESOLVED Known to work|

[Bug tree-optimization/69308] ifcombine joins together floating point expression with side effects

2016-02-11 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69308 --- Comment #16 from Richard Biener --- Author: rguenth Date: Thu Feb 11 13:49:59 2016 New Revision: 233345 URL: https://gcc.gnu.org/viewcvs?rev=233345&root=gcc&view=rev Log: 2016-01-18 Richard Biener PR middle-end/69308 * gi

[Bug tree-optimization/69308] ifcombine joins together floating point expression with side effects

2016-02-11 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69308 --- Comment #15 from Richard Biener --- Author: rguenth Date: Thu Feb 11 13:27:14 2016 New Revision: 233341 URL: https://gcc.gnu.org/viewcvs?rev=233341&root=gcc&view=rev Log: 2016-02-11 Richard Biener Backport from mainline 2

[Bug tree-optimization/69308] ifcombine joins together floating point expression with side effects

2016-02-05 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69308 --- Comment #14 from Richard Biener --- *** Bug 69682 has been marked as a duplicate of this bug. ***

[Bug tree-optimization/69308] ifcombine joins together floating point expression with side effects

2016-01-18 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69308 Richard Biener changed: What|Removed |Added Known to work||6.0 --- Comment #12 from Richard Biener

[Bug tree-optimization/69308] ifcombine joins together floating point expression with side effects

2016-01-18 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69308 --- Comment #13 from Richard Biener --- Author: rguenth Date: Mon Jan 18 13:03:54 2016 New Revision: 232516 URL: https://gcc.gnu.org/viewcvs?rev=232516&root=gcc&view=rev Log: 2016-01-18 Richard Biener PR middle-end/69308 * gi

[Bug tree-optimization/69308] ifcombine joins together floating point expression with side effects

2016-01-18 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69308 Richard Biener changed: What|Removed |Added Keywords||wrong-code Status|NEW

[Bug tree-optimization/69308] ifcombine joins together floating point expression with side effects

2016-01-16 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69308 Marc Glisse changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug tree-optimization/69308] ifcombine joins together floating point expression with side effects

2016-01-15 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69308 --- Comment #9 from joseph at codesourcery dot com --- Code should not be moved to evaluate a floating-point expression when it would not be evaluated in the abstract machine, if that expression could raise an exception. Whether this should be

[Bug tree-optimization/69308] ifcombine joins together floating point expression with side effects

2016-01-15 Thread mtliang at synopsys dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69308 --- Comment #8 from Mike Liang --- No, -ftrapping-math does not change the outcome. I'm building x86_64 on RHEL 6.6.

[Bug tree-optimization/69308] ifcombine joins together floating point expression with side effects

2016-01-15 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69308 --- Comment #7 from Andrew Pinski --- Does adding -ftrapping-math allow it to work? Also what target are you running on?

[Bug tree-optimization/69308] ifcombine joins together floating point expression with side effects

2016-01-15 Thread mtliang at synopsys dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69308 --- Comment #6 from Mike Liang --- Oh, I see. You're saying this can be a problem for both QNaN and SNaN because an ordered comparison instruction could be generated. Does this mean floating point expressions should never be combined?

[Bug tree-optimization/69308] ifcombine joins together floating point expression with side effects

2016-01-15 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69308 --- Comment #5 from joseph at codesourcery dot com --- Maybe you're encountering one of the known bugs where on some architectures GCC wrongly generated unordered comparison instructions for ordered comparisons.

[Bug tree-optimization/69308] ifcombine joins together floating point expression with side effects

2016-01-15 Thread mtliang at synopsys dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69308 --- Comment #4 from Mike Liang --- The test case passes both a signaling NaN and a quiet NaN through the expression and FPE is only triggered by the signaling NaN.

[Bug tree-optimization/69308] ifcombine joins together floating point expression with side effects

2016-01-15 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69308 --- Comment #3 from joseph at codesourcery dot com --- This has nothing to do with signaling NaNs; ordered comparisons raise exceptions for quiet NaNs as well.

[Bug tree-optimization/69308] ifcombine joins together floating point expression with side effects

2016-01-15 Thread mtliang at synopsys dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69308 --- Comment #2 from Mike Liang --- Created attachment 37369 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37369&action=edit run tests

[Bug tree-optimization/69308] ifcombine joins together floating point expression with side effects

2016-01-15 Thread mtliang at synopsys dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69308 --- Comment #1 from Mike Liang --- Created attachment 37367 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37367&action=edit Makefile