aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndi Kleen <ak@gcc.gnu.org>2025-08-29 08:59:52 -0700
committerAndi Kleen <ak@gcc.gnu.org>2025-09-01 08:22:27 -0700
commitcf7dc77ac2581eca220b1e421c74abf8c61b1148 (patch)
treea3e1bc20ac3939875172105d706da62babba9a36
parent32d3f5744a1f263c9b1a3f0aae2127940bddb775 (diff)
downloadgcc-cf7dc77ac2581eca220b1e421c74abf8c61b1148.zip
gcc-cf7dc77ac2581eca220b1e421c74abf8c61b1148.tar.gz
gcc-cf7dc77ac2581eca220b1e421c74abf8c61b1148.tar.bz2
Add default arch/tuning to shift-gf2p8affine test cases
This makes them not fail during test suite runs with overriden arch or tunings. gcc/testsuite/ChangeLog: * gcc.target/i386/shift-gf2p8affine-1.c: Use -march=x86-64 -mtune-generic. * gcc.target/i386/shift-gf2p8affine-2.c: Dito. * gcc.target/i386/shift-gf2p8affine-3.c: Dito. * gcc.target/i386/shift-gf2p8affine-5.c: Dito. * gcc.target/i386/shift-gf2p8affine-6.c: Dito. * gcc.target/i386/shift-gf2p8affine-7.c: Dito.
-rw-r--r--gcc/testsuite/gcc.target/i386/shift-gf2p8affine-1.c2
-rw-r--r--gcc/testsuite/gcc.target/i386/shift-gf2p8affine-2.c2
-rw-r--r--gcc/testsuite/gcc.target/i386/shift-gf2p8affine-3.c2
-rw-r--r--gcc/testsuite/gcc.target/i386/shift-gf2p8affine-5.c2
-rw-r--r--gcc/testsuite/gcc.target/i386/shift-gf2p8affine-6.c2
-rw-r--r--gcc/testsuite/gcc.target/i386/shift-gf2p8affine-7.c2
6 files changed, 6 insertions, 6 deletions
diff --git a/gcc/testsuite/gcc.target/i386/shift-gf2p8affine-1.c b/gcc/testsuite/gcc.target/i386/shift-gf2p8affine-1.c
index e5be3a3..cb576eb 100644
--- a/gcc/testsuite/gcc.target/i386/shift-gf2p8affine-1.c
+++ b/gcc/testsuite/gcc.target/i386/shift-gf2p8affine-1.c
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-mgfni -mavx512vl -mavx512bw -mavx512f -O3" } */
+/* { dg-options "-mgfni -mavx512vl -mavx512bw -mavx512f -O3 -march=x86-64 -mtune=generic" } */
/* { dg-final { scan-assembler-times "vgf2p8affineqb" 14 } } */
#ifndef N
diff --git a/gcc/testsuite/gcc.target/i386/shift-gf2p8affine-2.c b/gcc/testsuite/gcc.target/i386/shift-gf2p8affine-2.c
index 098361a..c46af84 100644
--- a/gcc/testsuite/gcc.target/i386/shift-gf2p8affine-2.c
+++ b/gcc/testsuite/gcc.target/i386/shift-gf2p8affine-2.c
@@ -1,5 +1,5 @@
/* { dg-do run } */
-/* { dg-options "-mgfni -mavx512vl -mavx512bw -mavx512f -O3 -Wno-shift-count-negative" } */
+/* { dg-options "-mgfni -mavx512vl -mavx512bw -mavx512f -O3 -Wno-shift-count-negative -march=x86-64 -mtune=generic" } */
#include <string.h>
diff --git a/gcc/testsuite/gcc.target/i386/shift-gf2p8affine-3.c b/gcc/testsuite/gcc.target/i386/shift-gf2p8affine-3.c
index 9e5ae5d..2099f4e 100644
--- a/gcc/testsuite/gcc.target/i386/shift-gf2p8affine-3.c
+++ b/gcc/testsuite/gcc.target/i386/shift-gf2p8affine-3.c
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-mgfni -mavx512bw -mavx512f -O3" } */
+/* { dg-options "-mgfni -mavx512bw -mavx512f -O3 -march=x86-64 -mtune=generic" } */
/* { dg-final { scan-assembler-times "vgf2p8affineqb" 12 } } */
/* Based on a test case from Andrew Pinski */
diff --git a/gcc/testsuite/gcc.target/i386/shift-gf2p8affine-5.c b/gcc/testsuite/gcc.target/i386/shift-gf2p8affine-5.c
index 65fb692..b8489a6 100644
--- a/gcc/testsuite/gcc.target/i386/shift-gf2p8affine-5.c
+++ b/gcc/testsuite/gcc.target/i386/shift-gf2p8affine-5.c
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-mgfni -mavx -O3 -Wno-shift-count-negative" } */
+/* { dg-options "-mgfni -mavx -O3 -Wno-shift-count-negative -march=x86-64 -mtune=generic" } */
/* { dg-final { scan-assembler-times "vgf2p8affineqb" 31 } } */
#include "shift-gf2p8affine-2.c"
diff --git a/gcc/testsuite/gcc.target/i386/shift-gf2p8affine-6.c b/gcc/testsuite/gcc.target/i386/shift-gf2p8affine-6.c
index 3391deb..bf8d341 100644
--- a/gcc/testsuite/gcc.target/i386/shift-gf2p8affine-6.c
+++ b/gcc/testsuite/gcc.target/i386/shift-gf2p8affine-6.c
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-mgfni -O3 -Wno-shift-count-negative" } */
+/* { dg-options "-mgfni -O3 -Wno-shift-count-negative -march=x86-64 -mtune=generic" } */
/* { dg-final { scan-assembler-times "vgf2p8affineqb" 0 } } */
#include "shift-gf2p8affine-2.c"
diff --git a/gcc/testsuite/gcc.target/i386/shift-gf2p8affine-7.c b/gcc/testsuite/gcc.target/i386/shift-gf2p8affine-7.c
index 37ba0c8..8e93bb3 100644
--- a/gcc/testsuite/gcc.target/i386/shift-gf2p8affine-7.c
+++ b/gcc/testsuite/gcc.target/i386/shift-gf2p8affine-7.c
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-mgfni -mavx512vl -mavx512bw -mavx512f -O3 -Wno-shift-count-negative" } */
+/* { dg-options "-mgfni -mavx512vl -mavx512bw -mavx512f -O3 -Wno-shift-count-negative -mtune=generic -march=x86-64" } */
/* { dg-final { scan-assembler-times "vgf2p8affineqb" 53 } } */
#include "shift-gf2p8affine-2.c"