qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v1 04/14] fp-test: add muladd variants


From: Emilio G. Cota
Subject: Re: [Qemu-devel] [PATCH v1 04/14] fp-test: add muladd variants
Date: Tue, 27 Mar 2018 14:03:39 -0400
User-agent: Mutt/1.5.24 (2015-08-30)

On Tue, Mar 27, 2018 at 12:33:55 +0100, Alex Bennée wrote:
> Emilio G. Cota <address@hidden> writes:
> 
> > These are a few muladd-related operations that the original IBM syntax
> > does not specify; model files for these are in muladd.fptest.
> >
> > Signed-off-by: Emilio G. Cota <address@hidden>
(snip)
> > +        case OP_MULADD_NEG_ADDEND:
> > +            res64 = float64_muladd(a, b, c, float_muladd_negate_c, s);
> > +            break;
> > +        case OP_MULADD_NEG_PRODUCT:
> > +            res64 = float64_muladd(a, b, c, float_muladd_negate_product, 
> > s);
> > +            break;
> > +        case OP_MULADD_NEG_RESULT:
> > +            res64 = float64_muladd(a, b, c, float_muladd_negate_result, s);
> > +            break;
> >          case OP_DIV:
> >              res64 = float64_div(a, b, s);
> >              break;
> 
> Are there any intrinsics we could use for the hard variant which would
> be useful if we want to run under translation?

I don't know of any portable way of doing this. We could add some
arch-specific code though, suitably ifdef'ed.

                E.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]