mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
tests/tcg/multiarch: Read fp flags before printf
We need to read the floating-point flags before printf may do other floating-point operations which may affect the flags. Hexagon reference files regenerated by Taylor Simpson. Signed-off-by: Taylor Simpson <tsimpson@quicinc.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Taylor Simpson <tsimpson@quicinc.com> Message-Id: <1639510781-3790-1-git-send-email-tsimpson@quicinc.com> Message-Id: <20211224035541.2159966-2-richard.henderson@linaro.org> Message-Id: <20220105135009.1584676-29-alex.bennee@linaro.org>
This commit is contained in:
parent
190674f371
commit
603bd9c25e
4 changed files with 102 additions and 102 deletions
|
@ -51,8 +51,8 @@ static void convert_single_to_double(float input)
|
|||
|
||||
output = input;
|
||||
|
||||
out_fmt = fmt_f64(output);
|
||||
flag_fmt = fmt_flags();
|
||||
out_fmt = fmt_f64(output);
|
||||
printf(" to double: %s (%s)\n", out_fmt, flag_fmt);
|
||||
free(out_fmt);
|
||||
free(flag_fmt);
|
||||
|
|
|
@ -54,8 +54,8 @@ static void print_result(float r, int j, int k)
|
|||
{
|
||||
char *r_fmt, *flag_fmt;
|
||||
|
||||
r_fmt = fmt_f32(r);
|
||||
flag_fmt = fmt_flags();
|
||||
r_fmt = fmt_f32(r);
|
||||
|
||||
printf("res: %s flags=%s (%d/%d)\n", r_fmt, flag_fmt, j, k);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue