From: Kai Tietz Date: Wed, 25 Feb 2015 13:42:12 +0000 (+0100) Subject: re PR tree-optimization/61917 (ICE on valid code at -O3 on x86_64-linux-gnu in vector... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=788753c90b48e29945f8059e1af697a0df64aa25;p=gcc.git re PR tree-optimization/61917 (ICE on valid code at -O3 on x86_64-linux-gnu in vectorizable_reduction, at tree-vect-loop.c:4913) PR tree-optimization/61917 * gcc.dg/vect/vect-pr61917.c: New file. From-SVN: r220967 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index daf3e185c89..49bf525cdaf 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-02-25 Kai Tietz + + PR tree-optimization/61917 + * gcc.dg/vect/vect-pr61917.c: New file. + 2015-02-24 Jakub Jelinek PR tree-optimization/65170 diff --git a/gcc/testsuite/gcc.dg/vect/vect-pr61917.c b/gcc/testsuite/gcc.dg/vect/vect-pr61917.c new file mode 100644 index 00000000000..c55c6206ab0 --- /dev/null +++ b/gcc/testsuite/gcc.dg/vect/vect-pr61917.c @@ -0,0 +1,13 @@ +/* { dg-do compile } */ +/* { dg-additional-options "-O3" } */ + +int a, b, c, d; + +int +fn1 () +{ + for (; c; c++) + for (b = 0; b < 2; b++) + d = a - d; + return d; +}