aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>2007-09-17 10:42:29 +0000
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>2007-09-17 10:42:29 +0000
commit8e4aec95ccba4e55404b9a901333ab44f99e1aa4 (patch)
tree45e9c37b57e2f258a511a0e1a80cba6b10ba7845
parentfd735b6a2e6839184cd0b4b3f505167b3a35c4e0 (diff)
downloadgcc-8e4aec95ccba4e55404b9a901333ab44f99e1aa4.zip
gcc-8e4aec95ccba4e55404b9a901333ab44f99e1aa4.tar.gz
gcc-8e4aec95ccba4e55404b9a901333ab44f99e1aa4.tar.bz2
re PR middle-end/33449 (ICE for fortran code with -O2 -ftree-vectorize)
PR middle-end/33449 * gfortran.dg/pr33449.f90: New test. From-SVN: r128543
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gfortran.dg/pr33449.f9018
2 files changed, 23 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 9428557..7bd5c28 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2007-09-17 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
+
+ PR middle-end/33449
+ * gfortran.dg/pr33449.f90: New test.
+
2007-09-17 Tobias Burnus <burnus@net-b.de>
* gfortran.dg/interface_15.f90: Compile with -std=f95.
diff --git a/gcc/testsuite/gfortran.dg/pr33449.f90 b/gcc/testsuite/gfortran.dg/pr33449.f90
new file mode 100644
index 0000000..98480b1
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/pr33449.f90
@@ -0,0 +1,18 @@
+! { dg-do compile }
+! { dg-options "-O2 -ftree-vectorize" }
+!
+! Testcase for vectorization (see PR33449).
+!
+subroutine dlarre (w, iblock, work)
+ integer m, i, iblock(*)
+ double precision w(*), work(*)
+
+ m = 0
+ do jblk = 1, 10
+ do i = 1, 10
+ m = m + 1
+ w(m) = -work(i)
+ iblock(m) = 0
+ end do
+ end do
+end