From: Richard Henderson <richard.henderson@linaro.org>
To: "Alex Bennée" <alex.bennee@linaro.org>
Cc: 1841592@bugs.launchpad.net, qemu-devel@nongnu.org, pc@us.ibm.com
Subject: Re: [Qemu-devel] [PATCH] tests/tcg: add float_madds test to multiarch
Date: Sat, 14 Sep 2019 14:11:54 -0400 [thread overview]
Message-ID: <502b7594-3c01-e9fa-c63e-78a583be0c01@linaro.org> (raw)
In-Reply-To: <87v9tuahdv.fsf@linaro.org>
On 9/14/19 1:59 PM, Alex Bennée wrote:
>
> Richard Henderson <richard.henderson@linaro.org> writes:
>
>> On 9/13/19 9:49 AM, Alex Bennée wrote:
>>> + /* must be built with -O2 to generate fused op */
>>> + r = a * b + c;
>>
>> I would prefer to use fmaf() or __builtin_fmaf() here.
>>
>> Although you'll need to link with -lm just in case the
>> target doesn't support an instruction for fmaf and so
>> the builtin expands to the standard library call.
>
> I can do that - we have other tests that link to libm.
>
> I was expecting to see more breakage but the ppc64 tests all passed (or
> at least against the power8 David ran it on). What am I missing to hit
> the cases you know are broken?
I would *expect* the test to pass when run natively on power8 hardware. Did it
not fail when run via qemu? If not, then we didn't really choose the argument
sets that are affected by double rounding.
I would expect the inputs that Paul used in the original report to be
candidates. Otherwise, we should grab some from the glibc fma test case(s).
> I've also experimented with reducing the number of iterations because if
> we want to have golden references we probably don't want to dump several
> hundred kilobytes of "golden" references into the source tree.
>
>> I also like Paul's suggestion to use hex float constants.
>
> Hmm I guess - look a bit weird but I guess that's lack of familiarity.
> Is is still normalised? I guess the frac shows up (without the implicit
> bit).
The implicit bit is there: 0x1.xxx. The representation is always normalized;
you write denormal numbers by using an exponent that would require denormalization.
r~
next prev parent reply other threads:[~2019-09-14 18:13 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-27 13:21 [Qemu-devel] [Bug 1841592] [NEW] ppc: softfloat float implementation issues Paul Clarke
2019-08-27 13:26 ` [Qemu-devel] [Bug 1841592] " Paul Clarke
2019-09-12 17:11 ` Alex Bennée
2019-09-12 18:39 ` Alex Bennée
2019-09-12 19:27 ` Richard Henderson
2019-09-12 21:30 ` Alex Bennée
2019-09-13 8:47 ` Alex Bennée
2019-09-13 13:49 ` [Qemu-devel] [PATCH] tests/tcg: add float_madds test to multiarch Alex Bennée
2019-09-13 13:49 ` [Qemu-devel] [Bug 1841592] " Alex Bennée
2019-09-13 14:50 ` [Qemu-devel] " Paul Clarke
2019-09-13 14:50 ` [Qemu-devel] [Bug 1841592] " Paul Clarke
2019-09-14 15:12 ` [Qemu-devel] " Richard Henderson
2019-09-14 17:59 ` Alex Bennée
2019-09-14 17:59 ` [Qemu-devel] [Bug 1841592] " Alex Bennée
2019-09-14 18:11 ` Richard Henderson [this message]
2019-09-13 14:13 ` [Qemu-devel] [Bug 1841592] Re: ppc: softfloat float implementation issues Alex Bennée
2019-11-14 4:17 ` Launchpad Bug Tracker
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=502b7594-3c01-e9fa-c63e-78a583be0c01@linaro.org \
--to=richard.henderson@linaro.org \
--cc=1841592@bugs.launchpad.net \
--cc=alex.bennee@linaro.org \
--cc=pc@us.ibm.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).