mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
tests/tcg/arm: Fix fcvt result messages
The test cases for "converting double-precision to single-precision"
emits float but the result variable was typed as uint32_t and corrupted
the printed values. Propertly type it as float.
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Fixes: 8ec8a55e3f ("tests/tcg/arm: add fcvt test cases for AArch32/64")
Message-Id: <20240627-tcg-v2-1-1690a813348e@daynix.com>
[rth: Update arm ref file as well]
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Message-Id: <20240630190050.160642-9-richard.henderson@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20240705084047.857176-14-alex.bennee@linaro.org>
This commit is contained in:
committed by
Alex Bennée
parent
b04bed529e
commit
3693408c5e
+302
-302
File diff suppressed because it is too large
Load Diff
@@ -258,7 +258,7 @@ static void convert_double_to_single(void)
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(double_numbers); ++i) {
|
||||
double input = double_numbers[i].d;
|
||||
uint32_t output;
|
||||
float output;
|
||||
|
||||
feclearexcept(FE_ALL_EXCEPT);
|
||||
|
||||
|
||||
+302
-302
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user