Fix gcc.dg/vect/bb-slp-46.c FAIL

Message ID 20230821111301.4696A385B531@sourceware.org
State Accepted
Headers
Series Fix gcc.dg/vect/bb-slp-46.c FAIL |

Checks

Context Check Description
snail/gcc-patch-check success Github commit url

Commit Message

Richard Biener Aug. 21, 2023, 11:12 a.m. UTC
  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.

Tested on x86_64-unknown-linux-gnu, pushed.

	* gcc.dg/vect/bb-slp-46.c: Use division instead of addition
	to avoid reduction vectorization.
---
 gcc/testsuite/gcc.dg/vect/bb-slp-46.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/gcc/testsuite/gcc.dg/vect/bb-slp-46.c b/gcc/testsuite/gcc.dg/vect/bb-slp-46.c
index 98b29062a19..4eceea44efc 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