public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/110915] New: vector version of `x == MIN & x > y` is not optimized
@ 2023-08-05 17:11 pinskia at gcc dot gnu.org
  2023-08-05 17:11 ` [Bug tree-optimization/110915] " pinskia at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-08-05 17:11 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 110915
           Summary: vector version of `x == MIN & x > y` is not optimized
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: enhancement
          Priority: P3
         Component: tree-optimization
          Assignee: pinskia at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---

Example:
```
#include <limits.h>

#define vector __attribute__((vector_size(sizeof(unsigned)*2)))

vector signed fs(vector signed x, vector signed y)
{
  vector signed t = x == INT_MIN;
  vector signed t1 = x > y;
  return t & t1;
}
vector signed fu(vector unsigned x, vector unsigned y)
{
  vector signed t = x == 0;
  vector signed t1 = x > y;
  return t & t1;
}

 signed f2_1( signed x,  signed y)
{
   signed t = x == INT_MIN;
   signed t1 = x > y;
  return t & t1;
}
```

I am filing this as I am fixing the pointer version (PR 96695) and don't want
to lose track of this either.

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

end of thread, other threads:[~2023-09-01 12:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-05 17:11 [Bug tree-optimization/110915] New: vector version of `x == MIN & x > y` is not optimized pinskia at gcc dot gnu.org
2023-08-05 17:11 ` [Bug tree-optimization/110915] " pinskia at gcc dot gnu.org
2023-08-05 17:25 ` pinskia at gcc dot gnu.org
2023-08-21 20:13 ` pinskia at gcc dot gnu.org
2023-08-30 22:27 ` pinskia at gcc dot gnu.org
2023-08-31 17:26 ` cvs-commit at gcc dot gnu.org
2023-08-31 17:27 ` pinskia at gcc dot gnu.org
2023-09-01 12:19 ` cvs-commit 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).