public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/54471] [4.8 Regression] FAIL: gcc.dg/sms-8.c execution test
Date: Wed, 21 Nov 2012 17:32:00 -0000	[thread overview]
Message-ID: <bug-54471-4-hrXbhDzepG@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-54471-4@http.gcc.gnu.org/bugzilla/>


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54471

--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-11-21 17:31:58 UTC ---
Thanks, I'm going to include your test too then:
--- gcc/testsuite/gcc.dg/tree-ssa/vrp86.c.jj    2012-11-21 18:27:53.389280736
+0100
+++ gcc/testsuite/gcc.dg/tree-ssa/vrp86.c    2012-11-21 18:27:47.000000000
+0100
@@ -0,0 +1,26 @@
+/* PR tree-optimization/54471 */
+/* { dg-do compile } */
+/* { dg-options "-O2 -fdump-tree-vrp1" } */
+
+#ifdef __SIZEOF_INT128__
+#define T __int128
+#else
+#define T long long
+#endif
+
+void fn1call ();
+void fn2call ();
+void f (unsigned T x)
+{
+  if (x > (unsigned T) -3)
+    return;
+  unsigned T y = 2 * x;
+  if (y == 42)
+    fn1call ();
+  else
+    fn2call ();
+}
+
+/* { dg-final { scan-tree-dump "fn1call" "vrp1"} } */
+/* { dg-final { scan-tree-dump "fn2call" "vrp1"} } */
+/* { dg-final { cleanup-tree-dump "vrp1" } } */


  parent reply	other threads:[~2012-11-21 17:32 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-03 17:58 [Bug tree-optimization/54471] New: " danglin at gcc dot gnu.org
2012-09-19 12:08 ` [Bug tree-optimization/54471] " rguenth at gcc dot gnu.org
2012-11-20 12:06 ` jakub at gcc dot gnu.org
2012-11-21  2:27 ` dave.anglin at bell dot net
2012-11-21 13:02 ` danglin at gcc dot gnu.org
2012-11-21 13:03 ` danglin at gcc dot gnu.org
2012-11-21 13:14 ` danglin at gcc dot gnu.org
2012-11-21 13:37 ` jakub at gcc dot gnu.org
2012-11-21 13:56 ` jakub at gcc dot gnu.org
2012-11-21 14:42 ` jakub at gcc dot gnu.org
2012-11-21 17:19 ` glisse at gcc dot gnu.org
2012-11-21 17:32 ` jakub at gcc dot gnu.org [this message]
2012-11-26  9:20 ` jakub at gcc dot gnu.org
2012-11-26  9:26 ` jakub 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-54471-4-hrXbhDzepG@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: link
Be 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).