https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91709
Andrew Pinski changed:
What|Removed |Added
Severity|normal |enhancement
--- Comment #6 from Andrew P
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91709
Richard Biener changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
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
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
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91709
--- Comment #1 from Antony Polukhin ---
Godbolt playground: https://godbolt.org/z/rHQj2w