adjust testcase for now happening epilogue vectorization

Message ID 20230705080852.2249A3858288@sourceware.org
State Accepted
Headers
Series adjust testcase for now happening epilogue vectorization |

Checks

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

Commit Message

Richard Biener July 5, 2023, 8:08 a.m. UTC
  gcc.dg/vect/slp-perm-9.c is reported to FAIL with -march=cascadelake
now which is because we now vectorize the epilogue with V2HImode
vectors after the recent change to not scrap too large vector
epilogues during transform but during analysis time.

The following adjusts the testcase to always use the existing alternate
N which avoids epilogue vectorization.

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

	* gcc.dg/vect/slp-perm-9.c: Always use alternate N.
---
 gcc/testsuite/gcc.dg/vect/slp-perm-9.c | 4 ----
 1 file changed, 4 deletions(-)
  

Patch

diff --git a/gcc/testsuite/gcc.dg/vect/slp-perm-9.c b/gcc/testsuite/gcc.dg/vect/slp-perm-9.c
index 154c00af598..f1f5d4f95a0 100644
--- a/gcc/testsuite/gcc.dg/vect/slp-perm-9.c
+++ b/gcc/testsuite/gcc.dg/vect/slp-perm-9.c
@@ -3,11 +3,7 @@ 
 #include <stdarg.h>
 #include "tree-vect.h"
 
-#if VECTOR_BITS > 512
 #define N (VECTOR_BITS * 6 / 16)
-#else
-#define N 200
-#endif
 
 void __attribute__((noinline))
 foo (unsigned short *__restrict__ pInput, unsigned short *__restrict__ pOutput)