From: Richard Biener Date: Wed, 8 Jun 2016 13:28:21 +0000 (+0000) Subject: re PR tree-optimization/68558 (Fails to SLP loop) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b2ae281460cad49e85ba533aef075685ed5430ea;p=gcc.git re PR tree-optimization/68558 (Fails to SLP loop) 2016-06-08 Richard Biener PR tree-optimization/68558 * gcc.dg/vect/slp-44.c: New testcase. From-SVN: r237216 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1d80915d65e..6c78af3a7f6 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2016-06-08 Richard Biener + + PR tree-optimization/68558 + * gcc.dg/vect/slp-44.c: New testcase. + 2016-06-08 Richard Biener * gcc.dg/vect/slp-43.c: New testcase. diff --git a/gcc/testsuite/gcc.dg/vect/slp-44.c b/gcc/testsuite/gcc.dg/vect/slp-44.c new file mode 100644 index 00000000000..445440bd45f --- /dev/null +++ b/gcc/testsuite/gcc.dg/vect/slp-44.c @@ -0,0 +1,25 @@ +/* { dg-do compile } */ +/* { dg-require-effective-target vect_int } */ + +void IMB_double_fast_x (int * __restrict__ destf, + int * __restrict__ dest, int y, + int * __restrict__ p1f) +{ + int i; + for (i = y; i > 0; i--) + { + *dest++ = 0; + destf[0] = p1f[0]; + destf[1] = p1f[1]; + destf[2] = p1f[2]; + destf[3] = p1f[3]; + destf[4] = p1f[8]; + destf[5] = p1f[9]; + destf[6] = p1f[10]; + destf[7] = p1f[11]; + destf += 8; + p1f += 12; + } +} + +/* { dg-final { scan-tree-dump "vectorized 1 loops" "vect" { target { vect_hw_misalign && vect_perm } } } } */