Debian Codegraph @

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

raw
1 /* { dg-do run } */
2 /* { dg-options "-fsignaling-nans -mfpmath=sse -O2 -march=x86-64-v3 -mavx10.2" } */
3 /* { dg-require-effective-target avx10_2 } */
4
5 #define AVX10_2
6 #define AVX10_SCALAR
7 #define SIZE (128 / 32)
8 #include "avx10-helper.h"
9 #include <stdbool.h>
10 #include "avx10-minmax-helper.h"
11 #include "avx512f-mask-type.h"
12
13 void static
14 CALC (float *r, float *s1, float *s2, int R)
15 {
16 r[0] = minmax_float(&s1[0], &s2[0], R);
17 for(int i = 1; i < SIZE; i++)
18 r[i] = s1[i];
19 }
20
21 void
22 TEST (void)
23 {
24 int i, sign;
25 UNION_TYPE (128, ) res1, res2, res3, src1, src2;
26 MASK_TYPE mask = MASK_VALUE;
27 float res_ref[SIZE];
28
29 SCALAR_UNIT_TEST(0, ss, , float);
30 SCALAR_UNIT_TEST(1, ss, , float);
31 SCALAR_UNIT_TEST(4, ss, , float);
32 SCALAR_UNIT_TEST(5, ss, , float);
33 SCALAR_UNIT_TEST(16, ss, , float);
34 SCALAR_UNIT_TEST(17, ss, , float);
35 }