public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/23470] New: a*a (for floats) is not considered always postive
@ 2005-08-18 22:41 pinskia at gcc dot gnu dot org
2005-08-31 16:07 ` [Bug middle-end/23470] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-18 22:41 UTC (permalink / raw)
To: gcc-bugs
While looking into PR 23452, I noticed this:
double pow(double, double);
int f(double a, double b)
{
if (((a*a) + (b*b))<0)
link_error();
}
There should be no reference to link_error as a*a is always postive. Note really
__builtin_pow (a, 2.0e+0) is what is folded to first.
--
Summary: a*a (for floats) is not considered always postive
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Keywords: missed-optimization
Severity: normal
Priority: P2
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23470
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-08-31 16:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-18 22:41 [Bug middle-end/23470] New: a*a (for floats) is not considered always postive pinskia at gcc dot gnu dot org
2005-08-31 16:07 ` [Bug middle-end/23470] " pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).