]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - math/test-float-vlen8.h
Vector sincos for x86_64 and tests.
[thirdparty/glibc.git] / math / test-float-vlen8.h
index 1a2eb5231898b42ae0764a144546db0e842dbfb9..697849f0700967188c2971daf854c7e3ac4cf573 100644 (file)
@@ -54,7 +54,8 @@ FLOAT scalar_func (FLOAT x)                   \
   VEC_TYPE mx;                                 \
   INIT_VEC_LOOP (mx, x, 8);                    \
   VEC_TYPE mr = vector_func (mx);              \
-  TEST_VEC_LOOP (8);                           \
+  TEST_VEC_LOOP (mr, 8);                       \
+  return ((FLOAT) mr[0]);                      \
 }
 
 // Wrapper from scalar 2 argument function to vector one.
@@ -67,5 +68,6 @@ FLOAT scalar_func (FLOAT x, FLOAT y)          \
   INIT_VEC_LOOP (mx, x, 8);                    \
   INIT_VEC_LOOP (my, y, 8);                    \
   VEC_TYPE mr = vector_func (mx, my);          \
-  TEST_VEC_LOOP (8);                           \
+  TEST_VEC_LOOP (mr, 8);                       \
+  return ((FLOAT) mr[0]);                      \
 }