OSDN Git Service

2012-03-23 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 Mar 2012 08:32:47 +0000 (08:32 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 Mar 2012 08:32:47 +0000 (08:32 +0000)
PR tree-optimization/52638
* g++.dg/torture/pr52638.C: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185727 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr52638.C [new file with mode: 0644]

index bf3c5d1..549cf5b 100644 (file)
@@ -1,3 +1,8 @@
+2012-03-23  Richard Guenther  <rguenther@suse.de>
+
+       PR tree-optimization/52638
+       * g++.dg/torture/pr52638.C: New testcase.
+
 2012-03-22  Paolo Carlini  <paolo.carlini@oracle.com>
 
        PR c++/52487
diff --git a/gcc/testsuite/g++.dg/torture/pr52638.C b/gcc/testsuite/g++.dg/torture/pr52638.C
new file mode 100644 (file)
index 0000000..3ac76cc
--- /dev/null
@@ -0,0 +1,15 @@
+// { dg-do compile }
+// { dg-options "-ftree-vectorize" }
+
+void
+bar (bool * b, bool * e, bool t)
+{
+  while (b < e)
+    *b++ = t;
+}
+
+void
+foo (bool * b, bool * e, bool t)
+{
+  bar (b, e, true);
+}