aboutsummaryrefslogtreecommitdiffstats
path: root/ref_vrecpe.c
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@st.com>2011-07-19 16:30:50 +0200
committerChristophe Lyon <christophe.lyon@st.com>2011-07-19 16:30:50 +0200
commitbd9ecf4db9bba1231667eac1468d9155d46a5e4f (patch)
tree118945e27d7a4bb1468f0a48e7a87db78d8a4d44 /ref_vrecpe.c
parent6f4d36f3deebf87b2710b5b7b5b30e8b2b60c285 (diff)
downloadplatform_external_arm-neon-tests-bd9ecf4db9bba1231667eac1468d9155d46a5e4f.tar.gz
platform_external_arm-neon-tests-bd9ecf4db9bba1231667eac1468d9155d46a5e4f.tar.bz2
platform_external_arm-neon-tests-bd9ecf4db9bba1231667eac1468d9155d46a5e4f.zip
Merge from SVN #531
[CL] add 'f' suffix to 'float' constants
Diffstat (limited to 'ref_vrecpe.c')
-rw-r--r--ref_vrecpe.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/ref_vrecpe.c b/ref_vrecpe.c
index 0a29ecc..41d314a 100644
--- a/ref_vrecpe.c
+++ b/ref_vrecpe.c
@@ -62,9 +62,9 @@ void exec_vrecpe(void)
/* Choose init value arbitrarily */
TEST_VDUP(vector, , uint, u, 32, 2, 0x12345678);
- TEST_VDUP(vector, , float, f, 32, 2, 1.9);
+ TEST_VDUP(vector, , float, f, 32, 2, 1.9f);
TEST_VDUP(vector, q, uint, u, 32, 4, 0xABCDEF10);
- TEST_VDUP(vector, q, float, f, 32, 4, 125);
+ TEST_VDUP(vector, q, float, f, 32, 4, 125.0f);
/* Apply the operator */
TEST_VRECPE(, uint, u, 32, 2);
@@ -80,9 +80,9 @@ void exec_vrecpe(void)
/* Choose init value arbitrarily */
TEST_VDUP(vector, , uint, u, 32, 2, 0xFFFFFFFF);
- TEST_VDUP(vector, , float, f, 32, 2, -10.0);
+ TEST_VDUP(vector, , float, f, 32, 2, -10.0f);
TEST_VDUP(vector, q, uint, u, 32, 4, 0x89081234);
- TEST_VDUP(vector, q, float, f, 32, 4, -125.0);
+ TEST_VDUP(vector, q, float, f, 32, 4, -125.0f);
/* Apply the operator */
TEST_VRECPE(, uint, u, 32, 2);
@@ -109,8 +109,8 @@ void exec_vrecpe(void)
DUMP_FP(TEST_MSG, float, 32, 4, PRIx32);
/* Test FP variants with special input values (zero, large value) */
- TEST_VDUP(vector, , float, f, 32, 2, 0.0);
- TEST_VDUP(vector, q, float, f, 32, 4, 9.0e37);
+ TEST_VDUP(vector, , float, f, 32, 2, 0.0f);
+ TEST_VDUP(vector, q, float, f, 32, 4, 9.0e37f);
/* Apply the operator */
TEST_VRECPE(, float, f, 32, 2);
@@ -121,7 +121,7 @@ void exec_vrecpe(void)
DUMP_FP(TEST_MSG, float, 32, 4, PRIx32);
/* Test FP variants with special input values (-0, -infinity) */
- TEST_VDUP(vector, , float, f, 32, 2, -0.0);
+ TEST_VDUP(vector, , float, f, 32, 2, -0.0f);
TEST_VDUP(vector, q, float, f, 32, 4, -HUGE_VALF);
/* Apply the operator */
@@ -133,7 +133,7 @@ void exec_vrecpe(void)
DUMP_FP(TEST_MSG, float, 32, 4, PRIx32);
/* Test FP variants with special input values (large negative value) */
- TEST_VDUP(vector, , float, f, 32, 2, -9.0e37);
+ TEST_VDUP(vector, , float, f, 32, 2, -9.0e37f);
/* Apply the operator */
TEST_VRECPE(, float, f, 32, 2);