public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/108430] New: [13 Regression] Wrong code with -msve-vector-bits=512 since r13-707-g68e0063397
@ 2023-01-17 11:10 acoplan at gcc dot gnu.org
  2023-01-17 12:14 ` [Bug tree-optimization/108430] " rguenth at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: acoplan at gcc dot gnu.org @ 2023-01-17 11:10 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 108430
           Summary: [13 Regression] Wrong code with -msve-vector-bits=512
                    since r13-707-g68e0063397
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: acoplan at gcc dot gnu.org
  Target Milestone: ---

For the following testcase:

static long d;
static int i = 37;
static unsigned long a[22];
static unsigned short c[22];
static unsigned g[80];
static unsigned short *h = c;
static unsigned long *j = a;
int main() {
  for (long m = 0; m < 8; ++m)
    d = 1;
  for (unsigned char p = 0; p < 17; p += (d ? i : 0) - 35)
  {
    long t = h[p] ? i : j[p];
    g[p] = t;
  }
  if (g[0])
    __builtin_abort ();
}

we appear to miscompile it with -O3 -march=armv8.2-a+sve -msve-vector-bits=512
since r13-707-g68e0063397ba820e71adc220b2da0581dce29ffa :


commit 68e0063397ba820e71adc220b2da0581dce29ffa (HEAD, refs/bisect/bad)         
Author: Richard Biener <rguenther@suse.de>                                      
Date:   Mon Apr 11 12:36:53 2022                                                

    Force the selection operand of a GIMPLE COND_EXPR to be a register

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

end of thread, other threads:[~2023-04-03  9:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-17 11:10 [Bug tree-optimization/108430] New: [13 Regression] Wrong code with -msve-vector-bits=512 since r13-707-g68e0063397 acoplan at gcc dot gnu.org
2023-01-17 12:14 ` [Bug tree-optimization/108430] " rguenth at gcc dot gnu.org
2023-02-09  9:45 ` rsandifo at gcc dot gnu.org
2023-02-21 13:02 ` rguenth at gcc dot gnu.org
2023-03-02 10:30 ` cvs-commit at gcc dot gnu.org
2023-03-02 11:03 ` rsandifo at gcc dot gnu.org
2023-03-15  9:49 ` [Bug tree-optimization/108430] [12 " rguenth at gcc dot gnu.org
2023-04-03  8:57 ` cvs-commit at gcc dot gnu.org
2023-04-03  9:00 ` rsandifo 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).