Message ID | OF95A4C39E.B52F9EC9-ONC225777D.00212EAE-C225777D.002233A0@il.ibm.com |
---|---|
State | New |
Headers | show |
diff --git a/gcc/testsuite/gcc.dg/vect/pr45241.c b/gcc/testsuite/gcc.dg/vect/pr45241.c new file mode 100644 index 0000000..c04cf04 --- /dev/null +++ b/gcc/testsuite/gcc.dg/vect/pr45241.c @@ -0,0 +1,19 @@ +/* PR tree-optimization/45241 */ +/* { dg-do compile } */ +/* { dg-options "-O3 -ftree-pre" } */ Instead of using dg-options please change the name of the test to no-tree-pre-pr45241.c. + +int +foo (short x) +{ + short i, y; + int sum; + + for (i = 0; i < x; i++) + y = x * i; + + for (i = x; i > 0; i--) + sum += y;