public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "zhendong.su at inf dot ethz.ch" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/108574] wrong code at -Os and above on x86_64-linux-gnu Date: Fri, 27 Jan 2023 17:07:45 +0000 [thread overview] Message-ID: <bug-108574-4-jXdsmMEoTA@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-108574-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108574 --- Comment #1 from Zhendong Su <zhendong.su at inf dot ethz.ch> --- Here is another reproducer likely for the same bug. Compiler Explorer: https://godbolt.org/z/Efvczc6f8 [556] % gcctk -O3 small.c [557] % ./a.out Floating point exception [558] % [558] % cat small.c int a, b, c, d, e, f, g = -1, h; void l() { if (!e) goto i; for (; g; g++) { b = ~d; int j = 0, k = 1; if (k && (b || f)) j = b; i: a = ~j; } } int main() { h = 3; for (; h; h--) { e = 1; int m = ~a, n = 1 % m; c = n; l(); } return 0; }
next prev parent reply other threads:[~2023-01-27 17:07 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-01-27 17:04 [Bug tree-optimization/108574] New: " zhendong.su at inf dot ethz.ch 2023-01-27 17:07 ` zhendong.su at inf dot ethz.ch [this message] 2023-01-27 21:12 ` [Bug tree-optimization/108574] " zhendong.su at inf dot ethz.ch 2023-01-27 22:56 ` [Bug tree-optimization/108574] [13 Regression] " pinskia at gcc dot gnu.org 2023-01-30 8:14 ` rguenth at gcc dot gnu.org 2023-01-30 8:32 ` rguenth at gcc dot gnu.org 2023-01-30 9:51 ` cvs-commit at gcc dot gnu.org 2023-01-30 9:51 ` 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-108574-4-jXdsmMEoTA@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).