Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx512er-vrsqrt28sd-2.c
blob1537a5932ca9516d219df2f61ce82e4e278e066b
1 /* { dg-do run } */
2 /* { dg-require-effective-target avx512er } */
3 /* { dg-options "-O2 -mavx512er" } */
5 #include "avx512er-check.h"
6 #include "avx512f-mask-type.h"
7 #include "avx512f-helper.h"
8 #include <math.h>
10 void static
11 avx512er_test (void)
13 union128d src, res;
14 double res_ref[2];
15 int i;
17 for (i = 0; i < 2; i++)
19 src.a[i] = 179.345 - 6.5645 * i;
20 res_ref[i] = src.a[i];
23 res_ref[0] = 1.0 / sqrt (src.a[0]);
25 res.x = _mm_rsqrt28_round_sd (src.x, src.x, _MM_FROUND_NO_EXC);
27 if (checkVd (res.a, res_ref, 2))
28 abort ();