public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/84997] Optimize integer operations on floating point constants without -ffast-math
       [not found] <bug-84997-4@http.gcc.gnu.org/bugzilla/>
@ 2021-07-24  9:41 ` pinskia at gcc dot gnu.org
  2023-08-05  3:28 ` [Bug tree-optimization/84997] Optimize integer operations on floating point constants without -ffast-math but with -fno-trapping-math pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-07-24  9:41 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
          Component|middle-end                  |tree-optimization

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

* [Bug tree-optimization/84997] Optimize integer operations on floating point constants without -ffast-math but with -fno-trapping-math
       [not found] <bug-84997-4@http.gcc.gnu.org/bugzilla/>
  2021-07-24  9:41 ` [Bug tree-optimization/84997] Optimize integer operations on floating point constants without -ffast-math pinskia at gcc dot gnu.org
@ 2023-08-05  3:28 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-08-05  3:28 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Optimize integer operations |Optimize integer operations
                   |on floating point constants |on floating point constants
                   |without -ffast-math         |without -ffast-math but
                   |                            |with -fno-trapping-math

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>clang optimizes to the following assembly

Note clang defaults to -fno-trapping-math.
Using -ftrapping-math with clang produces what GCC produces currently:
        cvtsi2sd        %edi, %xmm0
        addsd   .LCPI0_0(%rip), %xmm0
        cvttsd2si       %xmm0, %eax
        retq

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

end of thread, other threads:[~2023-08-05  3:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-84997-4@http.gcc.gnu.org/bugzilla/>
2021-07-24  9:41 ` [Bug tree-optimization/84997] Optimize integer operations on floating point constants without -ffast-math pinskia at gcc dot gnu.org
2023-08-05  3:28 ` [Bug tree-optimization/84997] Optimize integer operations on floating point constants without -ffast-math but with -fno-trapping-math pinskia at gcc dot gnu.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).