qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
To: bharata@linux.vnet.ibm.com
Cc: qemu-ppc@nongnu.org, david@gibson.dropbear.id.au,
	rth@twiddle.net, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] target/ppc: rewrite f[n]m[add, sub] using float64_muladd
Date: Wed, 01 Mar 2017 13:54:02 +0530	[thread overview]
Message-ID: <87d1e15rrx.fsf@abhimanyu.i-did-not-set--mail-host-address--so-tickle-me> (raw)
In-Reply-To: <87h93d5rxg.fsf@abhimanyu.i-did-not-set--mail-host-address--so-tickle-me>

Nikunj A Dadhania <nikunj@linux.vnet.ibm.com> writes:

> Bharata B Rao <bharata@linux.vnet.ibm.com> writes:
>
>> On Wed, Mar 01, 2017 at 01:14:11PM +0530, Nikunj A Dadhania wrote:
>>> Use the softfloat api for fused multiply-add. As we are using the fused
>>> multiply-add, the intermediate result for setting VXISI is not
>>> available.
>>
>> Isn't the behaviour of setting VXISI similar to vector muladd instructions ?
>> If so refer to VSX_MADD() to see when VXISI is set.
>
>                 if ((float64_is_infinity(xa.fld) ||
>                      float64_is_infinity(b->fld)) &&
>                      float64_is_infinity(c->fld))) {
>                    float_invalid_op_excp(env, POWERPC_EXCP_FP_VXISI, sfprf);
>                }
>                
> AFAIU, VXISI is set when (infinity - infinity). The above doesn't take
> into consideration about substraction.

To be precise:

"If the product of x and y is an Infinity and z is an Infinity of the
opposite sign, vxisi_flag is set to 1."

Regards
Nikunj

      reply	other threads:[~2017-03-01  8:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-01  7:44 [Qemu-devel] [PATCH] target/ppc: rewrite f[n]m[add, sub] using float64_muladd Nikunj A Dadhania
2017-03-01  7:59 ` Bharata B Rao
2017-03-01  8:20   ` Nikunj A Dadhania
2017-03-01  8:24     ` Nikunj A Dadhania [this message]

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=87d1e15rrx.fsf@abhimanyu.i-did-not-set--mail-host-address--so-tickle-me \
    --to=nikunj@linux.vnet.ibm.com \
    --cc=bharata@linux.vnet.ibm.com \
    --cc=david@gibson.dropbear.id.au \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    --cc=rth@twiddle.net \
    /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).