public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "acoplan at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/108430] New: [13 Regression] Wrong code with -msve-vector-bits=512 since r13-707-g68e0063397 Date: Tue, 17 Jan 2023 11:10:52 +0000 [thread overview] Message-ID: <bug-108430-4@http.gcc.gnu.org/bugzilla/> (raw) 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
next reply other threads:[~2023-01-17 11:10 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-01-17 11:10 acoplan at gcc dot gnu.org [this message] 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-108430-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).