summaryrefslogtreecommitdiff
path: root/math/test-float-vlen8.h
diff options
context:
space:
mode:
Diffstat (limited to 'math/test-float-vlen8.h')
-rw-r--r--math/test-float-vlen8.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/math/test-float-vlen8.h b/math/test-float-vlen8.h
index 1a2eb52318..697849f070 100644
--- a/math/test-float-vlen8.h
+++ b/math/test-float-vlen8.h
@@ -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]); \
}