Skip to content

Commit 34caeae

Browse files
committed
i386: Refactor AVX10.2 runtime test
Since everything is under avx10.2, we could use a header file plus a file actually run all the tests for runtime test. gcc/testsuite/ChangeLog: * gcc.target/i386/avx10-check.h: Remove AVX10_512BIT. * gcc.target/i386/avx10-minmax-helper.h: Ditto. * gcc.target/i386/avx10_2-vaddbf16-2.c: Add 512 test. * gcc.target/i386/avx10_2-vcmpbf16-2.c: Ditto. * gcc.target/i386/avx10_2-vcvt2ph2bf8-2.c: Ditto. * gcc.target/i386/avx10_2-vcvt2ph2bf8s-2.c: Ditto. * gcc.target/i386/avx10_2-vcvt2ph2hf8-2.c: Ditto. * gcc.target/i386/avx10_2-vcvt2ph2hf8s-2.c: Ditto. * gcc.target/i386/avx10_2-vcvt2ps2phx-2.c: Ditto. * gcc.target/i386/avx10_2-vcvtbf162ibs-2.c: Ditto. * gcc.target/i386/avx10_2-vcvtbf162iubs-2.c: Ditto. * gcc.target/i386/avx10_2-vcvtbiasph2bf8-2.c: Ditto. * gcc.target/i386/avx10_2-vcvtbiasph2bf8s-2.c: Ditto. * gcc.target/i386/avx10_2-vcvtbiasph2hf8-2.c: Ditto. * gcc.target/i386/avx10_2-vcvtbiasph2hf8s-2.c: Ditto. * gcc.target/i386/avx10_2-vcvthf82ph-2.c: Ditto. * gcc.target/i386/avx10_2-vcvtph2bf8-2.c: Ditto. * gcc.target/i386/avx10_2-vcvtph2bf8s-2.c: Ditto. * gcc.target/i386/avx10_2-vcvtph2hf8-2.c: Ditto. * gcc.target/i386/avx10_2-vcvtph2hf8s-2.c: Ditto. * gcc.target/i386/avx10_2-vcvtph2ibs-2.c: Ditto. * gcc.target/i386/avx10_2-vcvtph2iubs-2.c: Ditto. * gcc.target/i386/avx10_2-vcvtps2ibs-2.c: Ditto. * gcc.target/i386/avx10_2-vcvtps2iubs-2.c: Ditto. * gcc.target/i386/avx10_2-vcvttbf162ibs-2.c: Ditto. * gcc.target/i386/avx10_2-vcvttbf162iubs-2.c: Ditto. * gcc.target/i386/avx10_2-vcvttpd2dqs-2.c: Ditto. * gcc.target/i386/avx10_2-vcvttpd2qqs-2.c: Ditto. * gcc.target/i386/avx10_2-vcvttpd2udqs-2.c: Ditto. * gcc.target/i386/avx10_2-vcvttpd2uqqs-2.c: Ditto. * gcc.target/i386/avx10_2-vcvttph2ibs-2.c: Ditto. * gcc.target/i386/avx10_2-vcvttph2iubs-2.c: Ditto. * gcc.target/i386/avx10_2-vcvttps2dqs-2.c: Ditto. * gcc.target/i386/avx10_2-vcvttps2ibs-2.c: Ditto. * gcc.target/i386/avx10_2-vcvttps2iubs-2.c: Ditto. * gcc.target/i386/avx10_2-vcvttps2qqs-2.c: Ditto. * gcc.target/i386/avx10_2-vcvttps2udqs-2.c: Ditto. * gcc.target/i386/avx10_2-vcvttps2uqqs-2.c: Ditto. * gcc.target/i386/avx10_2-vdivbf16-2.c: Ditto. * gcc.target/i386/avx10_2-vdpphps-2.c: Ditto. * gcc.target/i386/avx10_2-vfmaddXXXbf16-2.c: Ditto. * gcc.target/i386/avx10_2-vfmsubXXXbf16-2.c: Ditto. * gcc.target/i386/avx10_2-vfnmaddXXXbf16-2.c: Ditto. * gcc.target/i386/avx10_2-vfnmsubXXXbf16-2.c: Ditto. * gcc.target/i386/avx10_2-vfpclassbf16-2.c: Ditto. * gcc.target/i386/avx10_2-vgetexpbf16-2.c: Ditto. * gcc.target/i386/avx10_2-vgetmantbf16-2.c: Ditto. * gcc.target/i386/avx10_2-vmaxbf16-2.c: Ditto. * gcc.target/i386/avx10_2-vminbf16-2.c: Ditto. * gcc.target/i386/avx10_2-vminmaxbf16-2.c: Ditto. * gcc.target/i386/avx10_2-vminmaxpd-2.c: Ditto. * gcc.target/i386/avx10_2-vminmaxph-2.c: Ditto. * gcc.target/i386/avx10_2-vminmaxps-2.c: Ditto. * gcc.target/i386/avx10_2-vmpsadbw-2.c: Ditto. * gcc.target/i386/avx10_2-vmulbf16-2.c: Ditto. * gcc.target/i386/avx10_2-vpdpbssd-2.c: Ditto. * gcc.target/i386/avx10_2-vpdpbssds-2.c: Ditto. * gcc.target/i386/avx10_2-vpdpbsud-2.c: Ditto. * gcc.target/i386/avx10_2-vpdpbsuds-2.c: Ditto. * gcc.target/i386/avx10_2-vpdpbuud-2.c: Ditto. * gcc.target/i386/avx10_2-vpdpbuuds-2.c: Ditto. * gcc.target/i386/avx10_2-vpdpwsud-2.c: Ditto. * gcc.target/i386/avx10_2-vpdpwsuds-2.c: Ditto. * gcc.target/i386/avx10_2-vpdpwusd-2.c: Ditto. * gcc.target/i386/avx10_2-vpdpwusds-2.c: Ditto. * gcc.target/i386/avx10_2-vpdpwuud-2.c: Ditto. * gcc.target/i386/avx10_2-vpdpwuuds-2.c: Ditto. * gcc.target/i386/avx10_2-vrcpbf16-2.c: Ditto. * gcc.target/i386/avx10_2-vreducebf16-2.c: Ditto. * gcc.target/i386/avx10_2-vrndscalebf16-2.c: Ditto. * gcc.target/i386/avx10_2-vrsqrtbf16-2.c: Ditto. * gcc.target/i386/avx10_2-vscalefbf16-2.c: Ditto. * gcc.target/i386/avx10_2-vsqrtbf16-2.c: Ditto. * gcc.target/i386/avx10_2-vsubbf16-2.c: Ditto. * gcc.target/i386/avx512f-helper.h: Remove AVX10_512BIT. * gcc.target/i386/sm4-check.h: Use AVX10_2. * gcc.target/i386/avx10_2-512-vaddbf16-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vaddbf16-2.h: ...here. * gcc.target/i386/avx10_2-512-vcmpbf16-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vcmpbf16-2.h: ...here. * gcc.target/i386/avx10_2-512-vcvt2ph2bf8-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vcvt2ph2bf8-2.h: ...here. * gcc.target/i386/avx10_2-512-vcvt2ph2bf8s-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vcvt2ph2bf8s-2.h: ...here. * gcc.target/i386/avx10_2-512-vcvt2ph2hf8-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vcvt2ph2hf8-2.h: ...here. * gcc.target/i386/avx10_2-512-vcvt2ph2hf8s-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vcvt2ph2hf8s-2.h: ...here. * gcc.target/i386/avx10_2-512-vcvt2ps2phx-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vcvt2ps2phx-2.h: ...here. * gcc.target/i386/avx10_2-512-vcvtbf162ibs-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vcvtbf162ibs-2.h: ...here. * gcc.target/i386/avx10_2-512-vcvtbf162iubs-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vcvtbf162iubs-2.h: ...here. * gcc.target/i386/avx10_2-512-vcvtbiasph2bf8-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vcvtbiasph2bf8-2.h: ...here. * gcc.target/i386/avx10_2-512-vcvtbiasph2bf8s-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vcvtbiasph2bf8s-2.h: ...here. * gcc.target/i386/avx10_2-512-vcvtbiasph2hf8-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vcvtbiasph2hf8-2.h: ...here. * gcc.target/i386/avx10_2-512-vcvtbiasph2hf8s-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vcvtbiasph2hf8s-2.h: ...here. * gcc.target/i386/avx10_2-512-vcvthf82ph-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vcvthf82ph-2.h: ...here. * gcc.target/i386/avx10_2-512-vcvtph2bf8-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vcvtph2bf8-2.h: ...here. * gcc.target/i386/avx10_2-512-vcvtph2bf8s-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vcvtph2bf8s-2.h: ...here. * gcc.target/i386/avx10_2-512-vcvtph2hf8-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vcvtph2hf8-2.h: ...here. * gcc.target/i386/avx10_2-512-vcvtph2hf8s-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vcvtph2hf8s-2.h: ...here. * gcc.target/i386/avx10_2-512-vcvtph2ibs-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vcvtph2ibs-2.h: ...here. * gcc.target/i386/avx10_2-512-vcvtph2iubs-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vcvtph2iubs-2.h: ...here. * gcc.target/i386/avx10_2-512-vcvtps2ibs-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vcvtps2ibs-2.h: ...here. * gcc.target/i386/avx10_2-512-vcvtps2iubs-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vcvtps2iubs-2.h: ...here. * gcc.target/i386/avx10_2-512-vcvttbf162ibs-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vcvttbf162ibs-2.h: ...here. * gcc.target/i386/avx10_2-512-vcvttbf162iubs-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vcvttbf162iubs-2.h: ...here. * gcc.target/i386/avx10_2-512-vcvttpd2dqs-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vcvttpd2dqs-2.h: ...here. * gcc.target/i386/avx10_2-512-vcvttpd2qqs-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vcvttpd2qqs-2.h: ...here. * gcc.target/i386/avx10_2-512-vcvttpd2udqs-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vcvttpd2udqs-2.h: ...here. * gcc.target/i386/avx10_2-512-vcvttpd2uqqs-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vcvttpd2uqqs-2.h: ...here. * gcc.target/i386/avx10_2-512-vcvttph2ibs-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vcvttph2ibs-2.h: ...here. * gcc.target/i386/avx10_2-512-vcvttph2iubs-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vcvttph2iubs-2.h: ...here. * gcc.target/i386/avx10_2-512-vcvttps2dqs-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vcvttps2dqs-2.h: ...here. * gcc.target/i386/avx10_2-512-vcvttps2ibs-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vcvttps2ibs-2.h: ...here. * gcc.target/i386/avx10_2-512-vcvttps2iubs-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vcvttps2iubs-2.h: ...here. * gcc.target/i386/avx10_2-512-vcvttps2qqs-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vcvttps2qqs-2.h: ...here. * gcc.target/i386/avx10_2-512-vcvttps2udqs-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vcvttps2udqs-2.h: ...here. * gcc.target/i386/avx10_2-512-vcvttps2uqqs-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vcvttps2uqqs-2.h: ...here. * gcc.target/i386/avx10_2-512-vdivbf16-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vdivbf16-2.h: ...here. * gcc.target/i386/avx10_2-512-vdpphps-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vdpphps-2.h: ...here. * gcc.target/i386/avx10_2-512-vfmaddXXXbf16-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vfmaddXXXbf16-2.h: ...here. * gcc.target/i386/avx10_2-512-vfmsubXXXbf16-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vfmsubXXXbf16-2.h: ...here. * gcc.target/i386/avx10_2-512-vfnmaddXXXbf16-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vfnmaddXXXbf16-2.h: ...here. * gcc.target/i386/avx10_2-512-vfnmsubXXXbf16-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vfnmsubXXXbf16-2.h: ...here. * gcc.target/i386/avx10_2-512-vfpclassbf16-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vfpclassbf16-2.h: ...here. * gcc.target/i386/avx10_2-512-vgetexpbf16-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vgetexpbf16-2.h: ...here. * gcc.target/i386/avx10_2-512-vgetmantbf16-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vgetmantbf16-2.h: ...here. * gcc.target/i386/avx10_2-512-vmaxbf16-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vmaxbf16-2.h: ...here. * gcc.target/i386/avx10_2-512-vminbf16-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vminbf16-2.h: ...here. * gcc.target/i386/avx10_2-512-vminmaxbf16-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vminmaxbf16-2.h: ...here. * gcc.target/i386/avx10_2-512-vminmaxpd-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vminmaxpd-2.h: ...here. * gcc.target/i386/avx10_2-512-vminmaxph-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vminmaxph-2.h: ...here. * gcc.target/i386/avx10_2-512-vminmaxps-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vminmaxps-2.h: ...here. * gcc.target/i386/avx10_2-512-vmpsadbw-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vmpsadbw-2.h: ...here. * gcc.target/i386/avx10_2-512-vmulbf16-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vmulbf16-2.h: ...here. * gcc.target/i386/avx10_2-512-vpdpbssd-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vpdpbssd-2.h: ...here. * gcc.target/i386/avx10_2-512-vpdpbssds-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vpdpbssds-2.h: ...here. * gcc.target/i386/avx10_2-512-vpdpbsud-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vpdpbsud-2.h: ...here. * gcc.target/i386/avx10_2-512-vpdpbsuds-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vpdpbsuds-2.h: ...here. * gcc.target/i386/avx10_2-512-vpdpbuud-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vpdpbuud-2.h: ...here. * gcc.target/i386/avx10_2-512-vpdpbuuds-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vpdpbuuds-2.h: ...here. * gcc.target/i386/avx10_2-512-vpdpwsud-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vpdpwsud-2.h: ...here. * gcc.target/i386/avx10_2-512-vpdpwsuds-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vpdpwsuds-2.h: ...here. * gcc.target/i386/avx10_2-512-vpdpwusd-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vpdpwusd-2.h: ...here. * gcc.target/i386/avx10_2-512-vpdpwusds-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vpdpwusds-2.h: ...here. * gcc.target/i386/avx10_2-512-vpdpwuud-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vpdpwuud-2.h: ...here. * gcc.target/i386/avx10_2-512-vpdpwuuds-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vpdpwuuds-2.h: ...here. * gcc.target/i386/avx10_2-512-vrcpbf16-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vrcpbf16-2.h: ...here. * gcc.target/i386/avx10_2-512-vreducebf16-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vreducebf16-2.h: ...here. * gcc.target/i386/avx10_2-512-vrndscalebf16-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vrndscalebf16-2.h: ...here. * gcc.target/i386/avx10_2-512-vrsqrtbf16-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vrsqrtbf16-2.h: ...here. * gcc.target/i386/avx10_2-512-vscalefbf16-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vscalefbf16-2.h: ...here. * gcc.target/i386/avx10_2-512-vsqrtbf16-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vsqrtbf16-2.h: ...here. * gcc.target/i386/avx10_2-512-vsubbf16-2.c: Remove 512 test. Move to... * gcc.target/i386/avx10_2-vsubbf16-2.h: ...here. * gcc.target/i386/sm4key4-avx10_2-512-2.c: Remove 512 test. Move to... * gcc.target/i386/sm4key4-avx10_2-2.c: ...here. * gcc.target/i386/sm4rnds4-avx10_2-512-2.c: Remove 512 test. Move to... * gcc.target/i386/sm4rnds4-avx10_2-2.c: ...here. * gcc.target/i386/vnniint16-auto-vectorize-4.c: Use AVX10_SCALAR for 512 bit test. * gcc.target/i386/vnniint8-auto-vectorize-4.c: Ditto.
1 parent 5817101 commit 34caeae

File tree

152 files changed

+522
-848
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

152 files changed

+522
-848
lines changed

gcc/testsuite/gcc.target/i386/avx10-check.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55

66
#ifndef DO_TEST
77
#define DO_TEST do_test
8-
#if defined(AVX10_512BIT) || defined(AVX10_SCALAR)
98
static void test_512 (void);
10-
#else
9+
#ifndef AVX10_SCALAR
1110
static void test_256 (void);
1211
static void test_128 (void);
1312
#endif
@@ -16,9 +15,8 @@ __attribute__ ((noinline))
1615
static void
1716
do_test (void)
1817
{
19-
#if defined(AVX10_512BIT) || defined(AVX10_SCALAR)
2018
test_512 ();
21-
#else
19+
#ifndef AVX10_SCALAR
2220
test_256 ();
2321
test_128 ();
2422
#endif

gcc/testsuite/gcc.target/i386/avx10-minmax-helper.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,10 @@ check_minmax_##UNION_TYPE (UNION_TYPE u, const VALUE_TYPE *v) \
6666
return err; \
6767
}
6868

69-
#if defined (AVX10_512BIT)
7069
CHECK_EXP_MINMAX (union512, float, int)
7170
CHECK_EXP_MINMAX (union512d, double, long int)
7271
CHECK_EXP_MINMAX (union512bf16_bf, __bf16, short int)
7372
CHECK_EXP_MINMAX (union512h, _Float16, short int)
74-
#endif
7573
CHECK_EXP_MINMAX (union256, float, int)
7674
CHECK_EXP_MINMAX (union256d, double, long int)
7775
CHECK_EXP_MINMAX (union128, float, int)

gcc/testsuite/gcc.target/i386/avx10_2-vaddbf16-2.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,19 @@
33
/* { dg-require-effective-target avx10_2 } */
44

55
#define AVX10_2
6+
#include "avx10_2-vaddbf16-2.h"
7+
8+
#undef AVX512F_LEN
9+
#undef AVX512F_LEN_HALF
10+
611
#define AVX512VL
712
#define AVX512F_LEN 256
813
#define AVX512F_LEN_HALF 128
9-
#include "avx10_2-512-vaddbf16-2.c"
14+
#include "avx10_2-vaddbf16-2.h"
1015

1116
#undef AVX512F_LEN
1217
#undef AVX512F_LEN_HALF
1318

1419
#define AVX512F_LEN 128
1520
#define AVX512F_LEN_HALF 128
16-
#include "avx10_2-512-vaddbf16-2.c"
21+
#include "avx10_2-vaddbf16-2.h"

gcc/testsuite/gcc.target/i386/avx10_2-512-vaddbf16-2.c renamed to gcc/testsuite/gcc.target/i386/avx10_2-vaddbf16-2.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
/* { dg-do run } */
2-
/* { dg-options "-O2 -march=x86-64-v3 -mavx10.2" } */
3-
/* { dg-require-effective-target avx10_2 } */
4-
5-
#ifndef AVX10_2
6-
#define AVX10_2
7-
#define AVX10_2_512
8-
#define AVX10_512BIT
9-
#endif
101
#include "avx10-helper.h"
112
#define SIZE (AVX512F_LEN / 16)
123
#include "avx512f-mask-type.h"

gcc/testsuite/gcc.target/i386/avx10_2-vcmpbf16-2.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,19 @@
33
/* { dg-require-effective-target avx10_2 } */
44

55
#define AVX10_2
6+
#include "avx10_2-vcmpbf16-2.h"
7+
8+
#undef AVX512F_LEN
9+
#undef AVX512F_LEN_HALF
10+
611
#define AVX512VL
712
#define AVX512F_LEN 256
813
#define AVX512F_LEN_HALF 128
9-
#include "avx10_2-512-vcmpbf16-2.c"
14+
#include "avx10_2-vcmpbf16-2.h"
1015

1116
#undef AVX512F_LEN
1217
#undef AVX512F_LEN_HALF
1318

1419
#define AVX512F_LEN 128
1520
#define AVX512F_LEN_HALF 128
16-
#include "avx10_2-512-vcmpbf16-2.c"
21+
#include "avx10_2-vcmpbf16-2.h"

gcc/testsuite/gcc.target/i386/avx10_2-512-vcmpbf16-2.c renamed to gcc/testsuite/gcc.target/i386/avx10_2-vcmpbf16-2.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
/* { dg-do run } */
2-
/* { dg-options "-O2 -march=x86-64-v3 -mavx10.2" } */
3-
/* { dg-require-effective-target avx10_2 } */
4-
5-
#ifndef AVX10_2
6-
#define AVX10_2
7-
#define AVX10_2_512
8-
#define AVX10_512BIT
9-
#endif
101
#include "avx10-helper.h"
112
#define SIZE (AVX512F_LEN / 16)
123
#include "avx512f-mask-type.h"

gcc/testsuite/gcc.target/i386/avx10_2-vcvt2ph2bf8-2.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,19 @@
33
/* { dg-require-effective-target avx10_2 } */
44

55
#define AVX10_2
6+
#include "avx10_2-vcvt2ph2bf8-2.h"
7+
8+
#undef AVX512F_LEN
9+
#undef AVX512F_LEN_HALF
10+
611
#define AVX512VL
712
#define AVX512F_LEN 256
813
#define AVX512F_LEN_HALF 128
9-
#include "avx10_2-512-vcvt2ph2bf8-2.c"
14+
#include "avx10_2-vcvt2ph2bf8-2.h"
1015

1116
#undef AVX512F_LEN
1217
#undef AVX512F_LEN_HALF
1318

1419
#define AVX512F_LEN 128
1520
#define AVX512F_LEN_HALF 128
16-
#include "avx10_2-512-vcvt2ph2bf8-2.c"
21+
#include "avx10_2-vcvt2ph2bf8-2.h"

gcc/testsuite/gcc.target/i386/avx10_2-512-vcvt2ph2bf8-2.c renamed to gcc/testsuite/gcc.target/i386/avx10_2-vcvt2ph2bf8-2.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
/* { dg-do run } */
2-
/* { dg-options "-O2 -march=x86-64-v3 -mavx10.2" } */
3-
/* { dg-require-effective-target avx10_2 } */
4-
5-
#ifndef AVX10_2
6-
#define AVX10_2
7-
#define AVX10_2_512
8-
#define AVX10_512BIT
9-
#endif
10-
111
#include "avx10-helper.h"
122
#include "fp8-helper.h"
133

gcc/testsuite/gcc.target/i386/avx10_2-vcvt2ph2bf8s-2.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,19 @@
33
/* { dg-require-effective-target avx10_2 } */
44

55
#define AVX10_2
6+
#include "avx10_2-vcvt2ph2bf8s-2.h"
7+
8+
#undef AVX512F_LEN
9+
#undef AVX512F_LEN_HALF
10+
611
#define AVX512VL
712
#define AVX512F_LEN 256
813
#define AVX512F_LEN_HALF 128
9-
#include "avx10_2-512-vcvt2ph2bf8s-2.c"
14+
#include "avx10_2-vcvt2ph2bf8s-2.h"
1015

1116
#undef AVX512F_LEN
1217
#undef AVX512F_LEN_HALF
1318

1419
#define AVX512F_LEN 128
1520
#define AVX512F_LEN_HALF 128
16-
#include "avx10_2-512-vcvt2ph2bf8s-2.c"
21+
#include "avx10_2-vcvt2ph2bf8s-2.h"

gcc/testsuite/gcc.target/i386/avx10_2-512-vcvt2ph2bf8s-2.c renamed to gcc/testsuite/gcc.target/i386/avx10_2-vcvt2ph2bf8s-2.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
/* { dg-do run } */
2-
/* { dg-options "-O2 -march=x86-64-v3 -mavx10.2" } */
3-
/* { dg-require-effective-target avx10_2 } */
4-
5-
#ifndef AVX10_2
6-
#define AVX10_2
7-
#define AVX10_2_512
8-
#define AVX10_512BIT
9-
#endif
10-
111
#include "avx10-helper.h"
122
#include "fp8-helper.h"
133

0 commit comments

Comments
 (0)