From: Richard Biener Date: Mon, 21 Aug 2023 11:09:31 +0000 (+0200) Subject: Fix gcc.dg/vect/bb-slp-46.c FAIL X-Git-Tag: basepoints/gcc-15~6782 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c5712ff47d86a742038477f945d539289c9a7a9;p=thirdparty%2Fgcc.git Fix gcc.dg/vect/bb-slp-46.c FAIL When relaxing vectorization of possibly overflowing reductions I failed to update a testcase that will now vectorize and no longer test for what it was written for. The following replaces the vectorizable add with a division. * gcc.dg/vect/bb-slp-46.c: Use division instead of addition to avoid reduction vectorization. --- diff --git a/gcc/testsuite/gcc.dg/vect/bb-slp-46.c b/gcc/testsuite/gcc.dg/vect/bb-slp-46.c index 98b29062a19b..4eceea44efcf 100644 --- a/gcc/testsuite/gcc.dg/vect/bb-slp-46.c +++ b/gcc/testsuite/gcc.dg/vect/bb-slp-46.c @@ -15,7 +15,7 @@ int foo () a[1] = tem1; a[2] = tem2; a[3] = tem3; - return temx + temy; + return temx / temy; } /* We should extract the live lane from the vectorized add rather than