[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/4] target/i386: fix floating-point load-constant rounding
From: |
Richard Henderson |
Subject: |
Re: [PATCH 1/4] target/i386: fix floating-point load-constant rounding |
Date: |
Tue, 19 May 2020 11:08:53 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 |
On 5/13/20 4:49 PM, Joseph Myers wrote:
> The implementations of the fldl2t, fldl2e, fldpi, fldlg2 and fldln2
> instructions load fixed constants independent of the rounding mode.
> Fix them to load a value correctly rounded for the current rounding
> mode (but always rounded to 64-bit precision independent of the
> precision control, and without setting "inexact") as specified.
>
> Signed-off-by: Joseph Myers <address@hidden>
> ---
> target/i386/fpu_helper.c | 54 +++++++-
> tests/tcg/i386/test-i386-fldcst.c | 199 ++++++++++++++++++++++++++++++
> 2 files changed, 248 insertions(+), 5 deletions(-)
> create mode 100644 tests/tcg/i386/test-i386-fldcst.c
Reviewed-by: Richard Henderson <address@hidden>
r~
- [PATCH 0/4] target/i386: miscellaneous x87 fixes, Joseph Myers, 2020/05/13
- [PATCH 1/4] target/i386: fix floating-point load-constant rounding, Joseph Myers, 2020/05/13
- Re: [PATCH 1/4] target/i386: fix floating-point load-constant rounding,
Richard Henderson <=
- [PATCH 2/4] target/i386: fix fxam handling of invalid encodings, Joseph Myers, 2020/05/13
- [PATCH 3/4] target/i386: fix fbstp handling of negative zero, Joseph Myers, 2020/05/13
- [PATCH 4/4] target/i386: fix fbstp handling of out-of-range values, Joseph Myers, 2020/05/13
- Re: [PATCH 0/4] target/i386: miscellaneous x87 fixes, no-reply, 2020/05/14