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 target/107257] [13 Regression] Wrong code at -O2 on x86_64-linux-gnu since r13-857-gf1652e3343b1ec47 Date: Mon, 17 Oct 2022 11:05:39 +0000 [thread overview] Message-ID: <bug-107257-4-M4IizEJZaP@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-107257-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107257 Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|needs-bisection | Component|c |target Host| |x86_64-linux-gnu Summary|Wrong code at -O2 on |[13 Regression] Wrong code |x86_64-linux-gnu |at -O2 on x86_64-linux-gnu | |since | |r13-857-gf1652e3343b1ec47 Target Milestone|--- |13.0 Priority|P3 |P1 CC| |sayle at gcc dot gnu.org --- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> --- Thanks, a bit modified: cat pr107257.c int a, b, c; int d[3]; int e(int f, int g, int k, int l, int m, int n) { int h = 4 * f + 2 * (g + l + n) + k + m, j = h >> 4; return j; } void o(int f) { int i = 0; for (; i < 3; i++) d[i] = 4279432140; for (; - 72 + f - -72 <= 2; f++) { a = 2; for (; a >= 0; a--) { b = 2; for (; b >= 0; b--) { int p = !(d[b] > 0 != e(10, 29, 42, 74, 89, -68) + f - 15); if (p) break; } if (f) break; } } } void q() { int i = 0; o(0); if (c) for (; i < 1;) for (; i < 1; i++) ; } int main() { q(); __builtin_printf("%d\n", b); if (b != -1) __builtin_abort (); } Started with r13-857-gf1652e3343b1ec47.
next prev parent reply other threads:[~2022-10-17 11:05 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-10-14 8:32 [Bug c/107257] New: Wrong code at -O2 on x86_64-linux-gnu shaohua.li at inf dot ethz.ch 2022-10-14 9:27 ` [Bug c/107257] " rguenth at gcc dot gnu.org 2022-10-14 10:00 ` marxin at gcc dot gnu.org 2022-10-14 10:03 ` marxin at gcc dot gnu.org 2022-10-14 12:52 ` rguenth at gcc dot gnu.org 2022-10-17 10:27 ` shaohua.li at inf dot ethz.ch 2022-10-17 11:05 ` marxin at gcc dot gnu.org [this message] 2022-10-17 11:09 ` [Bug target/107257] [13 Regression] Wrong code at -O2 on x86_64-linux-gnu since r13-857-gf1652e3343b1ec47 rguenth at gcc dot gnu.org 2022-10-20 17:25 ` pinskia at gcc dot gnu.org 2023-07-27 8:01 ` shaohua.li at inf dot ethz.ch 2023-07-27 14:47 ` shaohua.li at inf dot ethz.ch
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-107257-4-M4IizEJZaP@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).