From: Richard Biener Date: Thu, 8 Feb 2018 10:52:00 +0000 (+0000) Subject: slp-pr56812.cc: Allow either basic-block or loop vectorization to happen. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3b263f5af20f4ebb92fad0b8797fe59e3cebf828;p=gcc.git slp-pr56812.cc: Allow either basic-block or loop vectorization to happen. 2018-02-08 Richard Biener * g++.dg/vect/slp-pr56812.cc: Allow either basic-block or loop vectorization to happen. From-SVN: r257479 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 16f2b1a9522..7179728ed5a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2018-02-08 Richard Biener + + * g++.dg/vect/slp-pr56812.cc: Allow either basic-block or + loop vectorization to happen. + 2018-02-08 Paolo Carlini PR c++/83204 diff --git a/gcc/testsuite/g++.dg/vect/slp-pr56812.cc b/gcc/testsuite/g++.dg/vect/slp-pr56812.cc index 8b24b337efa..08b09817799 100644 --- a/gcc/testsuite/g++.dg/vect/slp-pr56812.cc +++ b/gcc/testsuite/g++.dg/vect/slp-pr56812.cc @@ -1,22 +1,19 @@ -/* { dg-do compile } */ -/* { dg-require-effective-target vect_float } */ -/* { dg-require-effective-target vect_hw_misalign } */ -/* { dg-additional-options "-O3 -funroll-loops -fvect-cost-model=dynamic" } */ - -class mydata { -public: - mydata() {Set(-1.0);} - void Set (float); - static int upper() {return 8;} - float data[8]; -}; - -void mydata::Set (float x) -{ - for (int i=0; i