qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Richard Henderson <rth@twiddle.net>
To: Chen Gang <xili_gchen_5257@hotmail.com>
Cc: "Peter Maydell" <peter.maydell@linaro.org>,
	walt@tilera.com, "Chris Metcalf" <cmetcalf@ezchip.com>,
	"Andreas Färber" <afaerber@suse.de>,
	qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [Consult] tilegx: About floating point instructions
Date: Mon, 17 Aug 2015 14:43:05 -0700	[thread overview]
Message-ID: <55D25569.5000902@twiddle.net> (raw)
In-Reply-To: <BLU436-SMTP67C4048EC6A32F8D701701B9790@phx.gbl>

On 08/17/2015 02:09 PM, Chen Gang wrote:
> On 8/18/15 01:31, Richard Henderson wrote:
>> On 08/15/2015 11:16 AM, Chen Gang wrote:
>>
>>> But what you said is really quite valuable to me!! we can treat the flag
>>> as a caller saved context, then can let the caller can use callee freely
>>> (in fact, I guess, the real hardware treats it as caller context, too).
>>>
>>>   - we have to define the flag format based on the existing format in the
>>>     related docs and tilegx.md (reserve 0-20 and 25-31 bits).
>>>
>>>   - We can only use 21-24 for mark addsub, mul, or typecast result. If
>>>     21-24 bits are all zero, it means typecast result. For fsingle: 32-63
>>>     bits is the input integer; for fdouble: srca is the input integer.
>>
>> Plausible.
>>
>>>
>>>   - For addsub and mul result, we use 32-63 bits for an index of resource
>>>     handler (like 'fd' returned by open). fsingle_addsub2, fsingle_mul1,
>>>     fdouble_mul_flags, fdouble_addsub allocate resource, and pack1 free.
>>
>> No, that's a bad idea.  No state external to the inputs to the insns.

...

>      float32 val32s[TILEGX_F_COUNT]; /* results roudup array for fsingle */
>      float64 val64s[TILEGX_F_COUNT]; /* results roudup array for fdouble */

I repeat: This is an extremely bad idea.
I will certainly not sign off on any patch that includes this.


r~

  reply	other threads:[~2015-08-17 21:43 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-01  9:47 [Qemu-devel] [Consult] tilegx: About floating point instructions Chen Gang
2015-08-03 16:40 ` Richard Henderson
2015-08-03 20:47   ` Chen Gang
2015-08-04 13:56     ` Chen Gang
2015-08-04 15:04       ` Richard Henderson
2015-08-05 14:16         ` Chen Gang
2015-08-08 17:23           ` Chen Gang
2015-08-09  1:10             ` Chen Gang
2015-08-09  1:14               ` Chen Gang
2015-08-11 13:18                 ` Chen Gang
2015-08-13 14:59                   ` Chen Gang
2015-08-15  9:56                     ` Chen Gang
2015-08-15 15:47                       ` Richard Henderson
2015-08-15 18:16                         ` Chen Gang
2015-08-16  1:41                           ` Chen Gang
2015-08-16  3:59                             ` Chen Gang
2015-08-17 17:31                           ` Richard Henderson
2015-08-17 21:09                             ` Chen Gang
2015-08-17 21:43                               ` Richard Henderson [this message]
2015-08-18 14:27                                 ` Chen Gang
2015-08-18 14:32                                   ` Peter Maydell
2015-08-18 21:29                                     ` Chen Gang
2015-08-18 22:15                                       ` Peter Maydell
2015-08-18 22:24                                         ` Chen Gang
2015-10-25 15:38                             ` Chen Gang
2015-10-26 14:14                               ` Chen Gang
     [not found]                                 ` <5630EF69.90906@hotmail.com>
2015-10-28 15:53                                   ` Chen Gang

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=55D25569.5000902@twiddle.net \
    --to=rth@twiddle.net \
    --cc=afaerber@suse.de \
    --cc=cmetcalf@ezchip.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=walt@tilera.com \
    --cc=xili_gchen_5257@hotmail.com \
    /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).