diff options
author | Christophe Lyon <christophe.lyon@st.com> | 2011-10-17 15:53:53 +0200 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@st.com> | 2011-10-17 15:53:53 +0200 |
commit | 269df92488695ef609d3759a28fa725a677161e2 (patch) | |
tree | e81cbd5bd97a5814a9b5c4aeef2d6f0e0d53a3aa /ref_vmax.c | |
parent | 836da4addcbdd1b6a2124e38fcd4013c0696770f (diff) | |
download | platform_external_arm-neon-tests-269df92488695ef609d3759a28fa725a677161e2.tar.gz platform_external_arm-neon-tests-269df92488695ef609d3759a28fa725a677161e2.tar.bz2 platform_external_arm-neon-tests-269df92488695ef609d3759a28fa725a677161e2.zip |
Fix/add tests with -NaN, -inf
Diffstat (limited to 'ref_vmax.c')
-rw-r--r-- | ref_vmax.c | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -123,12 +123,22 @@ FNNAME (INSN_NAME) TEST_VDUP(vector, q, float, f, 32, 4, 1.0f); TEST_VDUP(vector2, q, float, f, 32, 4, NAN); TEST_BINARY_OP(INSN_NAME, q, float, f, 32, 4); - DUMP_FP(TEST_MSG " FP special (NAN)", float, 32, 4, PRIx32); + DUMP_FP(TEST_MSG " FP special (NaN)", float, 32, 4, PRIx32); - TEST_VDUP(vector, q, float, f, 32, 4, NAN); + TEST_VDUP(vector, q, float, f, 32, 4, -NAN); TEST_VDUP(vector2, q, float, f, 32, 4, 1.0f); TEST_BINARY_OP(INSN_NAME, q, float, f, 32, 4); - DUMP_FP(TEST_MSG " FP special (NAN)", float, 32, 4, PRIx32); + DUMP_FP(TEST_MSG " FP special (-NaN)", float, 32, 4, PRIx32); + + TEST_VDUP(vector, q, float, f, 32, 4, 1.0f); + TEST_VDUP(vector2, q, float, f, 32, 4, HUGE_VALF); + TEST_BINARY_OP(INSN_NAME, q, float, f, 32, 4); + DUMP_FP(TEST_MSG " FP special (inf)", float, 32, 4, PRIx32); + + TEST_VDUP(vector, q, float, f, 32, 4, -HUGE_VALF); + TEST_VDUP(vector2, q, float, f, 32, 4, 1.0f); + TEST_BINARY_OP(INSN_NAME, q, float, f, 32, 4); + DUMP_FP(TEST_MSG " FP special (-inf)", float, 32, 4, PRIx32); TEST_VDUP(vector, q, float, f, 32, 4, 0.0f); TEST_VDUP(vector2, q, float, f, 32, 4, -0.0f); |