blob: d38b49a549723ee2a36d3e6980b5214c64bf4c73 [file] [log] [blame]
// { dg-do compile }
// { dg-require-effective-target vect_double }
#include <algorithm>
void loop1(double * const __restrict__ vec, double x, int end)
{
for (int i = 0; i < end; ++i)
vec[i] = std::min(vec[i], vec[i]/x);
}
// { dg-final { scan-tree-dump "vectorized 1 loops" "vect" } }