aboutsummaryrefslogtreecommitdiff
path: root/libmudflap/testsuite
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2008-01-05 13:06:54 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2008-01-05 13:06:54 +0100
commit58fcda212fea0a129016917d3cc13063ffc7de68 (patch)
treee05e27e3ffb7ec0c24fa67011460b29b81c777ab /libmudflap/testsuite
parentf1bf33ce5229a313acccff578cc6c9d22df0447e (diff)
downloadgcc-58fcda212fea0a129016917d3cc13063ffc7de68.zip
gcc-58fcda212fea0a129016917d3cc13063ffc7de68.tar.gz
gcc-58fcda212fea0a129016917d3cc13063ffc7de68.tar.bz2
re PR tree-optimization/34618 (ICE with -fmudflap and vectorization)
PR tree-optimization/34618 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P flag from T. * testsuite/libmudflap.c/pass62-frag.c: New test. From-SVN: r131336
Diffstat (limited to 'libmudflap/testsuite')
-rw-r--r--libmudflap/testsuite/libmudflap.c/pass62-frag.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/libmudflap/testsuite/libmudflap.c/pass62-frag.c b/libmudflap/testsuite/libmudflap.c/pass62-frag.c
new file mode 100644
index 0000000..8e64b2b
--- /dev/null
+++ b/libmudflap/testsuite/libmudflap.c/pass62-frag.c
@@ -0,0 +1,13 @@
+/* PR tree-optimization/34618 */
+/* { dg-do compile } */
+/* { dg-options "-O3 -fmudflap" } */
+
+int a[16];
+
+void
+foo ()
+{
+ int i;
+ for (i = 0; i < 16; i++)
+ a[i] = i;
+}