Debian Codegraph @

gcc/testsuite/gcc.target/i386/avx512fp16-1e.c

raw
1 /* { dg-do run { target avx512fp16 } } */
2 /* { dg-options "-O2 -mavx512fp16" } */
3
4 #include <string.h>
5
6 static void do_test (void);
7
8 #define DO_TEST do_test
9 #define AVX512FP16
10 #include "avx512-check.h"
11 #include "avx512fp16-1a.c"
12
13 __m128h
14 __attribute__ ((noinline,noclone))
15 foo3 (__m128h x)
16 {
17 return foo1(x[0]);
18 }
19
20 static void
21 do_test (void)
22 {
23 union128h u = { -1.2f, 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f };
24 union128h a, b = { -1.2f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f};
25 __m128h v;
26 v = foo3 (u.x);
27 a.x = v;
28 if (check_union128h (a, b.a))
29 abort ();
30 }