[Bug target/88474] Inline built-in hypot for -ffast-math

2022-05-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88474

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|9.5 |---
 Target|i?86-*-*|powerpc64le-linux
   Keywords||missed-optimization

[Bug target/88474] Inline built-in hypot for -ffast-math

2021-06-01 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88474

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|9.4 |9.5

--- Comment #8 from Richard Biener  ---
GCC 9.4 is being released, retargeting bugs to GCC 9.5.

[Bug target/88474] Inline built-in hypot for -ffast-math

2020-03-12 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88474

Jakub Jelinek  changed:

   What|Removed |Added

   Target Milestone|9.3 |9.4

--- Comment #7 from Jakub Jelinek  ---
GCC 9.3.0 has been released, adjusting target milestone.

[Bug target/88474] Inline built-in hypot for -ffast-math

2019-08-12 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88474

Jakub Jelinek  changed:

   What|Removed |Added

   Target Milestone|9.2 |9.3

--- Comment #6 from Jakub Jelinek  ---
GCC 9.2 has been released.

[Bug target/88474] Inline built-in hypot for -ffast-math

2019-05-03 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88474

Jakub Jelinek  changed:

   What|Removed |Added

   Target Milestone|9.0 |9.2

--- Comment #5 from Jakub Jelinek  ---
GCC 9.1 has been released.

[Bug target/88474] Inline built-in hypot for -ffast-math

2019-04-22 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88474

Segher Boessenkool  changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 CC||segher at gcc dot gnu.org
 Resolution|FIXED   |---

--- Comment #4 from Segher Boessenkool  ---
It isn't implemented for any other targets yet.  When I use __builtin_hypot
with -ffast-math (I tried on powerpc64-linux) I get a call to __hypot_finite,
instead of just three machine instructions, like e.g.

fmul 2,2,2
fmadd 1,1,1,2
fsqrt 1,1

which is what you get for

double hypot(double x, double y) { return __builtin_sqrt(x*x + y*y); }

Reopened.  (Or do you want this PR to be just for x87?  If so, why?)

[Bug target/88474] Inline built-in hypot for -ffast-math

2019-03-25 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88474

Uroš Bizjak  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED
   Target Milestone|--- |9.0

--- Comment #3 from Uroš Bizjak  ---
Implemented for gcc-9.

[Bug target/88474] Inline built-in hypot for -ffast-math

2018-12-14 Thread uros at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88474

--- Comment #2 from uros at gcc dot gnu.org ---
Author: uros
Date: Fri Dec 14 17:04:48 2018
New Revision: 267137

URL: https://gcc.gnu.org/viewcvs?rev=267137=gcc=rev
Log:
PR target/88474
* internal-fn.def (HYPOT): New.
* optabs.def (hypot_optab): New.
* config/i386/i386.md (hypot3): New expander.


Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/i386/i386.md
trunk/gcc/internal-fn.def
trunk/gcc/optabs.def

[Bug target/88474] Inline built-in hypot for -ffast-math

2018-12-13 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88474

Uroš Bizjak  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2018-12-13
   Assignee|unassigned at gcc dot gnu.org  |ubizjak at gmail dot com
 Ever confirmed|0   |1

--- Comment #1 from Uroš Bizjak  ---
Created attachment 45224
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45224=edit
Proposed patch

Patch that implements hypotf and hypot using x87 XFmode arithmetic.