summaryrefslogtreecommitdiff
path: root/math/test-float-vlen16.h
diff options
context:
space:
mode:
Diffstat (limited to 'math/test-float-vlen16.h')
-rw-r--r--math/test-float-vlen16.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/math/test-float-vlen16.h b/math/test-float-vlen16.h
index 008e15ea13..802ae7bda2 100644
--- a/math/test-float-vlen16.h
+++ b/math/test-float-vlen16.h
@@ -54,7 +54,8 @@ FLOAT scalar_func (FLOAT x) \
VEC_TYPE mx; \
INIT_VEC_LOOP (mx, x, 16); \
VEC_TYPE mr = vector_func (mx); \
- TEST_VEC_LOOP (16); \
+ TEST_VEC_LOOP (mr, 16); \
+ 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, 16); \
INIT_VEC_LOOP (my, y, 16); \
VEC_TYPE mr = vector_func (mx, my); \
- TEST_VEC_LOOP (16); \
+ TEST_VEC_LOOP (mr, 16); \
+ return ((FLOAT) mr[0]); \
}