public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/58417] Incorrect optimization in SCEV const-prop Date: Mon, 16 Sep 2013 08:38:00 -0000 [thread overview] Message-ID: <bug-58417-4-DOy7nagwmQ@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-58417-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58417 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code Summary|Incorrect optimization |Incorrect optimization in | |SCEV const-prop Known to fail| |4.4.7, 4.5.4, 4.6.4, 4.7.3, | |4.8.1, 4.9.0 --- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- C testcase that fails everywhere: /* { dg-do run } */ long long arr[6] = {0, 1, 2, 3, 4, 5}; extern void abort (void); void __attribute__((noinline,noclone)) foo (long long sum) { asm (""); } int main() { int i, n = 5; long long sum = 0, prevsum = 0; for(i = 1; i <= n; i++) { foo (sum); sum = (i - 1) * arr[i] - prevsum; prevsum += arr[i]; } if (sum != 10) abort (); return 0; }
next prev parent reply other threads:[~2013-09-16 8:38 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-09-13 20:21 [Bug c++/58417] New: Incorrect optimization mirzayanovmr at gmail dot com 2013-09-13 21:40 ` [Bug tree-optimization/58417] " glisse at gcc dot gnu.org 2013-09-16 8:38 ` rguenth at gcc dot gnu.org [this message] 2013-09-16 8:40 ` [Bug tree-optimization/58417] Incorrect optimization in SCEV const-prop rguenth at gcc dot gnu.org 2013-09-16 11:28 ` rguenth at gcc dot gnu.org 2013-09-16 11:59 ` rguenth at gcc dot gnu.org 2013-09-17 9:51 ` rguenth at gcc dot gnu.org 2013-09-18 12:31 ` rguenth at gcc dot gnu.org 2013-09-18 12:32 ` rguenth at gcc dot gnu.org 2013-09-20 10:19 ` rguenth at gcc dot gnu.org 2013-09-20 17:50 ` 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-58417-4-DOy7nagwmQ@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).