public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107212] [11/12/13 Regression] Wrong vectorizer code since r11-718-gc735929a2503a7d0 Date: Tue, 11 Oct 2022 08:32:08 +0000 [thread overview] Message-ID: <bug-107212-4-GIAn3VnVm1@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-107212-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107212 Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Summary|-O2 and -O3 optimizer bug |[11/12/13 Regression] Wrong | |vectorizer code since | |r11-718-gc735929a2503a7d0 CC| |marxin at gcc dot gnu.org, | |rguenth at gcc dot gnu.org Status|UNCONFIRMED |NEW Component|c |tree-optimization Target Milestone|--- |11.5 Keywords| |wrong-code Last reconfirmed| |2022-10-11 --- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> --- A bit reduced test-case: $ cat pr107212.c int main() { unsigned int tab[6][2] = { {69, 73}, {36, 40}, {24, 16}, {16, 11}, {4, 5}, {3, 1} }; int flag = 1; int sum_0 = 0; int sum_1 = 0; for(int t=0; t<6; t++) { sum_0 += tab[t][0]; sum_1 += tab[t][1]; } int x1 = (sum_0 < 100); int x2 = (sum_0 > 200); int x3 = (x1 || x2); if(sum_1 > 200) { flag=0; } __builtin_printf("sum_1: %d\n", sum_1); if (x1 || x2) __builtin_abort (); return 0; } With -O3 it started with r11-718-gc735929a2503a7d0.
next prev parent reply other threads:[~2022-10-11 8:32 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-10-11 8:06 [Bug c/107212] New: -O2 and -O3 optimizer bug aosman9xx9 at gmail dot com 2022-10-11 8:32 ` marxin at gcc dot gnu.org [this message] 2022-10-11 8:42 ` [Bug tree-optimization/107212] [11/12/13 Regression] Wrong vectorizer code since r11-718-gc735929a2503a7d0 rguenth at gcc dot gnu.org 2022-10-11 8:43 ` rguenth at gcc dot gnu.org 2022-10-11 8:44 ` marxin at gcc dot gnu.org 2022-10-11 9:30 ` rguenth at gcc dot gnu.org 2022-10-11 9:30 ` rguenth at gcc dot gnu.org 2022-10-11 11:15 ` cvs-commit at gcc dot gnu.org 2022-10-11 11:16 ` [Bug tree-optimization/107212] [11/12 " rguenth at gcc dot gnu.org 2022-10-17 13:10 ` cvs-commit at gcc dot gnu.org 2023-01-24 15:22 ` [Bug tree-optimization/107212] [11 " cvs-commit at gcc dot gnu.org 2023-01-24 15:23 ` rguenth 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-107212-4-GIAn3VnVm1@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).