From 3b263f5af20f4ebb92fad0b8797fe59e3cebf828 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Thu, 8 Feb 2018 10:52:00 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 5 +++ gcc/testsuite/g++.dg/vect/slp-pr56812.cc | 41 +++++++++++------------- 2 files changed, 24 insertions(+), 22 deletions(-) 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