mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
softfpu: Add float_round_to_odd_inf
For Arm BFDOT and BFMMLA, we need a version of round-to-odd that overflows to infinity, instead of the max normal number. Cc: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20210525225817.400336-6-richard.henderson@linaro.org Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
d29b17ca3e
commit
60c8f7265d
2 changed files with 7 additions and 3 deletions
|
@ -134,8 +134,10 @@ typedef enum __attribute__((__packed__)) {
|
|||
float_round_up = 2,
|
||||
float_round_to_zero = 3,
|
||||
float_round_ties_away = 4,
|
||||
/* Not an IEEE rounding mode: round to the closest odd mantissa value */
|
||||
/* Not an IEEE rounding mode: round to closest odd, overflow to max */
|
||||
float_round_to_odd = 5,
|
||||
/* Not an IEEE rounding mode: round to closest odd, overflow to inf */
|
||||
float_round_to_odd_inf = 6,
|
||||
} FloatRoundMode;
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue