1/* { dg-do run } */ 2/* { dg-options "-mavx512f -O2" } */ 3/* { dg-require-effective-target avx512f } */ 4 5#include "avx512f-check.h" 6 7static void 8compute_vrcp14ss (float *s1, float *s2, float *r) 9{ 10 r[0] = 1.0 / s2[0]; 11 r[1] = s1[1]; 12 r[2] = s1[2]; 13 r[3] = s1[3]; 14} 15 16static void 17avx512f_test (void) 18{ 19 union128 s1, s2, res1; 20 float res_ref[4]; 21 22 s1.x = _mm_set_ps (-24.043, 68.346, -43.35, 546.46); 23 s2.x = _mm_set_ps (222.222, 333.333, 444.444, -2.0); 24 25 res1.x = _mm_rcp14_ss (s1.x, s2.x); 26 27 compute_vrcp14ss (s1.a, s2.a, res_ref); 28 29 if (checkVf (res1.a, res_ref, 4)) 30 abort (); 31} 32