public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/102171] New: vget_low_*/vget_high_* intrinsics should become BIT_FIELD_REF during gimple
@ 2021-09-02  7:59 pinskia at gcc dot gnu.org
  2021-10-22 10:10 ` [Bug target/102171] " tnfchris at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-02  7:59 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 102171
           Summary: vget_low_*/vget_high_* intrinsics should become
                    BIT_FIELD_REF during gimple
           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
            Blocks: 95958
  Target Milestone: ---
            Target: aarch64*-linux-gnu

#include <arm_neon.h>
float16x4_t f0(float16x8_t b)
{
  return vget_low_f16 (b);
}
float16x4_t f(float16x8_t b)
{
  return vget_high_f16 (b);
}
float16x4_t f1(float16x8_t b)
{
  return ((float16x4_t*)&b)[0];
}
float16x4_t f2(float16x8_t b)
{
  return ((float16x4_t*)&b)[1];
}
---- CUT ----
For little-endian f0 and f1 are the same, and f and f2 are the same.
For big-endian f0 and f2 are the same, and f0 and f1 are the same.

The reason why we should simplify them at the gimple level is to allow the
gimple optimizers do the work for us.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95958
[Bug 95958] [meta-bug] Inefficient arm_neon.h code for AArch64

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

end of thread, other threads:[~2024-05-22 20:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-02  7:59 [Bug target/102171] New: vget_low_*/vget_high_* intrinsics should become BIT_FIELD_REF during gimple pinskia at gcc dot gnu.org
2021-10-22 10:10 ` [Bug target/102171] " tnfchris at gcc dot gnu.org
2024-02-27  9:28 ` pinskia at gcc dot gnu.org
2024-02-27  9:32 ` tnfchris at gcc dot gnu.org
2024-05-20 20:06 ` cvs-commit at gcc dot gnu.org
2024-05-22 20:07 ` cvs-commit at gcc dot gnu.org
2024-05-22 20:09 ` 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).