[Bug middle-end/91709] Missed optimization for multiplication on 1.5 and 1.25

2021-12-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91709 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement --- Comment #6 from Andrew P

[Bug middle-end/91709] Missed optimization for multiplication on 1.5 and 1.25

2019-09-11 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91709 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug middle-end/91709] Missed optimization for multiplication on 1.5 and 1.25

2019-09-10 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91709 --- Comment #4 from joseph at codesourcery dot com --- See the C17 standard, Annex F.4 "Floating to integer conversion": "Otherwise, if the floating value is infinite or NaN or if the integral part of the floating value exceeds the range of the

[Bug middle-end/91709] Missed optimization for multiplication on 1.5 and 1.25

2019-09-10 Thread antoshkka at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91709 --- Comment #3 from Antony Polukhin --- (In reply to jos...@codesourcery.com from comment #2) > If the result of multiplying by 1.5 is outside the range of the integer > type, the version with multiplication is required to raise the FE_INVALID

[Bug middle-end/91709] Missed optimization for multiplication on 1.5 and 1.25

2019-09-09 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91709 --- Comment #2 from joseph at codesourcery dot com --- If the result of multiplying by 1.5 is outside the range of the integer type, the version with multiplication is required to raise the FE_INVALID exception for the out-of-range conversion t

[Bug middle-end/91709] Missed optimization for multiplication on 1.5 and 1.25

2019-09-09 Thread antoshkka at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91709 --- Comment #1 from Antony Polukhin --- Godbolt playground: https://godbolt.org/z/rHQj2w