aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture
diff options
context:
space:
mode:
authorZdenek Dvorak <dvorakz@suse.cz>2005-06-01 01:07:25 +0200
committerZdenek Dvorak <rakdver@gcc.gnu.org>2005-05-31 23:07:25 +0000
commit60407f7a65c33d2aecea3bf7c8dd7c60a9365b2a (patch)
tree73f806204342b65cfc56e80c487c1fc421798933 /gcc/testsuite/gcc.dg/torture
parentec22e73ba8b0c57e65fb72522603fe7555123010 (diff)
downloadgcc-60407f7a65c33d2aecea3bf7c8dd7c60a9365b2a.zip
gcc-60407f7a65c33d2aecea3bf7c8dd7c60a9365b2a.tar.gz
gcc-60407f7a65c33d2aecea3bf7c8dd7c60a9365b2a.tar.bz2
re PR tree-optimization/21817 (ICE in for_each_index, at tree-ssa-loop-im.c:200)
PR tree-optimization/21817 * tree-ssa-loop-im.c (for_each_index): Handle VECTOR_CST. From-SVN: r100410
Diffstat (limited to 'gcc/testsuite/gcc.dg/torture')
-rw-r--r--gcc/testsuite/gcc.dg/torture/pr21817-1.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/torture/pr21817-1.c b/gcc/testsuite/gcc.dg/torture/pr21817-1.c
new file mode 100644
index 0000000..524c798
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/torture/pr21817-1.c
@@ -0,0 +1,12 @@
+/* { dg-do compile } */
+
+typedef float v4sf __attribute__((vector_size(16)));
+v4sf value;
+void foo(void)
+{
+ unsigned int band;
+ for(band=0; band < 2; band++)
+ {
+ value += (v4sf){1e9f,1e9f,1e9f,1e9f};
+ }
+}