From: "Alex Bennée" <alex.bennee@linaro.org>
To: Mateja Marjanovic <mateja.marjanovic@rt-rk.com>
Cc: qemu-devel@nongnu.org, aurelien@aurel32.net,
amarkovic@wavecomp.com, arikalo@wavecomp.com,
peter.maydell@linaro.org
Subject: Re: [Qemu-devel] [PATCH] target/mips: Fix minor bug in FPU
Date: Thu, 07 Mar 2019 17:32:45 +0000 [thread overview]
Message-ID: <87imwufv42.fsf@zen.linaroharston> (raw)
In-Reply-To: <1551978650-23207-2-git-send-email-mateja.marjanovic@rt-rk.com>
Mateja Marjanovic <mateja.marjanovic@rt-rk.com> writes:
> From: Mateja Marjanovic <Mateja.Marjanovic@rt-rk.com>
>
> Wrong type of NaN was generated by maddf and msubf insturctions
> when the arguments were inf, zero, nan or zero, inf, nan
> respectively.
>
> Signed-off-by: Mateja Marjanovic <mateja.marjanovic@rt-rk.com>
> ---
> fpu/softfloat-specialize.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fpu/softfloat-specialize.h b/fpu/softfloat-specialize.h
> index 16c0bcb..647bfbc 100644
> --- a/fpu/softfloat-specialize.h
> +++ b/fpu/softfloat-specialize.h
> @@ -500,7 +500,7 @@ static int pickNaNMulAdd(FloatClass a_cls, FloatClass b_cls, FloatClass c_cls,
> */
> if (infzero) {
> float_raise(float_flag_invalid, status);
> - return 3;
> + return 2;
Hi,
This changes the behaviour documented above which says:
/* For MIPS, the (inf,zero,qnan) case sets InvalidOp and returns
* the default NaN
*/
So if the behaviour is incorrect please update the comment as well.
Bonus points for a reference to the canonical reference document that
describes this.
--
Alex Bennée
next prev parent reply other threads:[~2019-03-07 17:32 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-07 17:10 [Qemu-devel] [PATCH] target/mips: Fix minor bug in FPU Mateja Marjanovic
2019-03-07 17:10 ` Mateja Marjanovic
2019-03-07 17:32 ` Alex Bennée [this message]
2019-03-07 17:43 ` Aleksandar Markovic
2019-03-07 18:25 ` Alex Bennée
2019-03-11 11:52 ` Aleksandar Markovic
2019-03-11 12:50 ` Peter Maydell
2019-03-11 13:58 ` Aleksandar Markovic
2019-03-11 14:18 ` Alex Bennée
2019-03-11 14:35 ` Aleksandar Markovic
2019-03-11 14:48 ` Peter Maydell
2019-03-11 15:18 ` Alex Bennée
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87imwufv42.fsf@zen.linaroharston \
--to=alex.bennee@linaro.org \
--cc=amarkovic@wavecomp.com \
--cc=arikalo@wavecomp.com \
--cc=aurelien@aurel32.net \
--cc=mateja.marjanovic@rt-rk.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.