aboutsummaryrefslogtreecommitdiffstats
path: root/ref_vcvt.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_vcvt.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_vcvt.c')
-rw-r--r--ref_vcvt.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ref_vcvt.c b/ref_vcvt.c
index 45553d0..806db3c 100644
--- a/ref_vcvt.c
+++ b/ref_vcvt.c
@@ -80,10 +80,10 @@ void exec_vcvt (void)
/* Make sure some elements have a fractional part, to exercise
integer conversions */
- TEST_VSET_LANE(vector, , float, f, 32, 2, 0, -15.3);
- TEST_VSET_LANE(vector, , float, f, 32, 2, 1, 5.3);
- TEST_VSET_LANE(vector, q, float, f, 32, 4, 2, -15.3);
- TEST_VSET_LANE(vector, q, float, f, 32, 4, 3, 5.3);
+ TEST_VSET_LANE(vector, , float, f, 32, 2, 0, -15.3f);
+ TEST_VSET_LANE(vector, , float, f, 32, 2, 1, 5.3f);
+ TEST_VSET_LANE(vector, q, float, f, 32, 4, 2, -15.3f);
+ TEST_VSET_LANE(vector, q, float, f, 32, 4, 3, 5.3f);
/* The same result buffers are used multiple times, so we output
them before overwriting them */
@@ -131,8 +131,8 @@ void exec_vcvt (void)
#undef TEST_MSG
#define TEST_MSG "VCVT/VCVTQ"
fprintf(ref_file, "\n%s output:\n", TEST_MSG " (check rounding)");
- TEST_VDUP(vector, , float, f, 32, 2, 10.4);
- TEST_VDUP(vector, q, float, f, 32, 4, 125.9);
+ TEST_VDUP(vector, , float, f, 32, 2, 10.4f);
+ TEST_VDUP(vector, q, float, f, 32, 4, 125.9f);
/* vcvt_xx_f32 */
TEST_VCVT(, int, s, 32, 2, float, f);
TEST_VCVT(, uint, u, 32, 2, float, f);