]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[x86] Avoid gcc.target/i386/shift-gf2p8affine-?.c fails with compare costs
authorRichard Biener <rguenther@suse.de>
Wed, 29 Apr 2026 13:26:35 +0000 (15:26 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 30 Apr 2026 06:12:46 +0000 (08:12 +0200)
The following disables epilogue vectorization for the
gcc.target/i386/shift-gf2p8affine-?.c tests so they pass with both
--param ix86-vect-compare-costs=1 and =0.

* gcc.target/i386/shift-gf2p8affine-1.c: Disable epilogue
vectorization.
* gcc.target/i386/shift-gf2p8affine-3.c: Likewise.
* gcc.target/i386/shift-gf2p8affine-7.c: Likewise.

gcc/testsuite/gcc.target/i386/shift-gf2p8affine-1.c
gcc/testsuite/gcc.target/i386/shift-gf2p8affine-3.c
gcc/testsuite/gcc.target/i386/shift-gf2p8affine-7.c

index cb576eb44988751b101478ab85fb04cda1856cb4..7bde8e5d3c0cbb36f53f1618296f1e54aca8b54e 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
-/* { dg-options "-mgfni -mavx512vl -mavx512bw -mavx512f -O3 -march=x86-64 -mtune=generic" } */
-/* { dg-final { scan-assembler-times "vgf2p8affineqb" 14 } } */
+/* { dg-options "-mgfni -mavx512vl -mavx512bw -mavx512f -O3 -march=x86-64 --param vect-epilogues-nomask=0 -mtune=generic" } */
+/* { dg-final { scan-assembler-times "vgf2p8affineqb" 7 } } */
 
 #ifndef N
 #define N 5
index 2099f4edddfa668c1aa784c79cc87c039a508882..aea60e1a6b79af73d7778a1a37adb72983ae2282 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
-/* { dg-options "-mgfni -mavx512bw -mavx512f -O3 -march=x86-64 -mtune=generic" } */
-/* { dg-final { scan-assembler-times "vgf2p8affineqb" 12 } } */
+/* { dg-options "-mgfni -mavx512bw -mavx512f -O3 -march=x86-64 -mtune=generic --param vect-epilogues-nomask=0" } */
+/* { dg-final { scan-assembler-times "vgf2p8affineqb" 6 } } */
 
 /* Based on a test case from Andrew Pinski */
 
index 8e93bb32e5d4781eec54eabc1796a32a57f82f2f..7608aa141c7ca23fca14cfa063177e979d667726 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-mgfni -mavx512vl -mavx512bw -mavx512f -O3 -Wno-shift-count-negative -mtune=generic -march=x86-64" } */
-/* { dg-final { scan-assembler-times "vgf2p8affineqb" 53 } } */
+/* { dg-options "-mgfni -mavx512vl -mavx512bw -mavx512f -O3 -Wno-shift-count-negative -mtune=generic -march=x86-64 --param vect-epilogues-nomask=0" } */
+/* { dg-final { scan-assembler-times "vgf2p8affineqb" 27 } } */
 
 #include "shift-gf2p8affine-2.c"