public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/114363] New: inconsistent optimization of pow(x,2)+pow(y,2)
@ 2024-03-16  9:31 vincenzo.innocente at cern dot ch
  2024-03-16 10:37 ` [Bug tree-optimization/114363] " harald at gigawatt dot nl
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: vincenzo.innocente at cern dot ch @ 2024-03-16  9:31 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114363

            Bug ID: 114363
           Summary: inconsistent optimization of pow(x,2)+pow(y,2)
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vincenzo.innocente at cern dot ch
  Target Milestone: ---

while pow(x,2) is optimized in x*x   (float x)
in  pow(x,2)+pow(y,2) x and y are first promoted to double 
which I find inconsistent

see
https://godbolt.org/z/rYfoaxr89

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-03-16 15:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-16  9:31 [Bug tree-optimization/114363] New: inconsistent optimization of pow(x,2)+pow(y,2) vincenzo.innocente at cern dot ch
2024-03-16 10:37 ` [Bug tree-optimization/114363] " harald at gigawatt dot nl
2024-03-16 11:26 ` xry111 at gcc dot gnu.org
2024-03-16 12:58 ` jakub at gcc dot gnu.org
2024-03-16 15:06 ` vincenzo.innocente at cern dot ch

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).