summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr32176.c
diff options
context:
space:
mode:
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2007-07-03 06:35:05 +0000
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2007-07-03 06:35:05 +0000
commitbb97a5795d64fbecc9924026addbe56e4e3d70b9 (patch)
tree4f47032e9b850d802a30a84a6cafb9c6dee98683 /gcc/testsuite/gcc.dg/pr32176.c
parent430be8e2b1849cee13a6d721c24132194a371eed (diff)
downloadgcc-bb97a5795d64fbecc9924026addbe56e4e3d70b9.tar.gz
PR middle-end/32176
* gcc.dg/pr32176.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126245 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr32176.c')
-rw-r--r--gcc/testsuite/gcc.dg/pr32176.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr32176.c b/gcc/testsuite/gcc.dg/pr32176.c
new file mode 100644
index 00000000000..bd2a1e3f9d0
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/pr32176.c
@@ -0,0 +1,28 @@
+/* Contributed by Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> */
+
+/* { dg-do compile } */
+/* { dg-options "-O2 -fprefetch-loop-arrays" } */
+/* { dg-options "-O2 -fprefetch-loop-arrays -march=i686 -msse" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
+
+void foo (void)
+{
+ int i, m;
+ float xa[21];
+
+ m = 0;
+ while (1)
+ {
+ i = 0;
+ while (1)
+ {
+ if (xa[(long int)i] == xa[(long int)(i+m)])
+ _gfortran_abort ();
+ if (i == 10)
+ break;
+ i++;
+ }
+ if (m == 10)
+ break;
+ m++;
+ }
+}