tests/fp: add wrapping for f128_to_ui32
authorAlex Bennée <alex.bennee@linaro.org>
Wed, 6 Feb 2019 14:31:40 +0000 (14:31 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 26 Feb 2019 14:05:19 +0000 (14:05 +0000)
Needed to test: softfloat: Implement float128_to_uint32

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
tests/fp/fp-test.c
tests/fp/wrap.inc.c

index 2a35ef601d7ac7d193344bb27f43dfba23008c2b..4114f346a9312ce01412bf73139a4852d5c48d35 100644 (file)
@@ -622,7 +622,8 @@ static void do_testfloat(int op, int rmode, bool exact)
         test_ab_extF80_z_bool(true_ab_extF80M_z_bool, subj_ab_extF80M_z_bool);
         break;
     case F128_TO_UI32:
-        not_implemented();
+        test_a_f128_z_ui32_rx(slow_f128M_to_ui32, qemu_f128M_to_ui32, rmode,
+                              exact);
         break;
     case F128_TO_UI64:
         test_a_f128_z_ui64_rx(slow_f128M_to_ui64, qemu_f128M_to_ui64, rmode,
index d3bf600cd039690363dab048a60d1d5d73093590..0cbd20013e72de12dfa0047f77566dac3d862dce 100644 (file)
@@ -367,6 +367,7 @@ WRAP_80_TO_INT_MINMAG(qemu_extF80M_to_i64_r_minMag,
 WRAP_128_TO_INT(qemu_f128M_to_i32, float128_to_int32, int_fast32_t)
 WRAP_128_TO_INT(qemu_f128M_to_i64, float128_to_int64, int_fast64_t)
 
+WRAP_128_TO_INT(qemu_f128M_to_ui32, float128_to_uint32, uint_fast32_t)
 WRAP_128_TO_INT(qemu_f128M_to_ui64, float128_to_uint64, uint_fast64_t)
 #undef WRAP_128_TO_INT