public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/103959] New: float64x1_t not using fmov to generate some float values
@ 2022-01-10  7:30 pinskia at gcc dot gnu.org
  2023-11-12 21:56 ` [Bug target/103959] " pinskia at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-01-10  7:30 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 103959
           Summary: float64x1_t not using fmov to generate some float
                    values
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: enhancement
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---
            Target: aarch64-*-*

#include <arm_neon.h>
Take:
double ff(void)
{
  return 2.0;
}
float64x1_t g(void)
{
  return (float64x1_t){2.0};
}
---- CUT ----
These should produce the same code but currently does not.
ff:
        fmov    d0, 2.0e+0
        ret
g:
        mov     x0, 4611686018427387904
        fmov    d0, x0
        ret

I Noticed this while working on PR 64821 where we now fold sqrt but get g.

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

* [Bug target/103959] float64x1_t not using fmov to generate some float values
  2022-01-10  7:30 [Bug target/103959] New: float64x1_t not using fmov to generate some float values pinskia at gcc dot gnu.org
@ 2023-11-12 21:56 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-11-12 21:56 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |pinskia at gcc dot gnu.org
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2023-11-12
             Status|UNCONFIRMED                 |ASSIGNED

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Mine.

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

end of thread, other threads:[~2023-11-12 21:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-10  7:30 [Bug target/103959] New: float64x1_t not using fmov to generate some float values pinskia at gcc dot gnu.org
2023-11-12 21:56 ` [Bug target/103959] " 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).