qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: David Gibson <david@gibson.dropbear.id.au>
To: Programmingkid <programmingkidx@gmail.com>
Cc: Richard Henderson <richard.henderson@linaro.org>,
	qemu-devel@nongnu.org, qemu-ppc@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 7/7] target/ppc: Use non-arithmetic conversions for fp load/store
Date: Fri, 6 Jul 2018 11:03:15 +1000	[thread overview]
Message-ID: <20180706010315.GI3450@umbus.fritz.box> (raw)
In-Reply-To: <1106207A-1C28-4146-9F94-F9747BF8B345@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1672 bytes --]

On Thu, Jul 05, 2018 at 12:51:00PM -0400, Programmingkid wrote:
> 
> > On Jul 5, 2018, at 12:48 PM, Richard Henderson <richard.henderson@linaro.org> wrote:
> > 
> > On 07/05/2018 09:31 AM, Programmingkid wrote:
> >>> On Jul 3, 2018, at 11:17 AM, Richard Henderson <richard.henderson@linaro.org> wrote:
> >>> 
> >>> Memory operations have no side effects on fp state.
> >>> The use of a "real" conversions between float64 and float32
> >>> would raise exceptions for SNaN and out-of-range inputs.
> >> 
> >> Would you have any documentation that tells us about converting
> >> between 64 bit and 32 bit floating points?
> > 
> > Spelled out right at the beginning of sections 4.6 (load) and 4.7 (store) of
> > Book 1 of the Power ISA manual (version 3.0B) [0].
> > 
> > I've double-checked vs RISU[1] testing of LFS and STFS, with master traces
> > generated on Power 8 ppc64le, so I don't see anything immediately wrong with
> > the patch.  But I haven't had time to look further than that.
> > 
> > 
> > r~
> > 
> > 
> > [0] https://openpowerfoundation.org/?resource_lib=power-isa-version-3-0
> > [1] https://git.linaro.org/people/peter.maydell/risu.git
> 
> Thank you for the documentation. My guess is there are differences
> between the PowerPC and Power 8 implementations.

That seems very, very unlikely to me.

> PowerPC is big
> endian. Would you be able to do your testing again with your Power 8
> CPU in big endian mode?
> 
> 

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2018-07-06  1:15 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-03 15:17 [Qemu-devel] [PATCH for-3.1 0/7] target/ppc fp cleanups Richard Henderson
2018-07-03 15:17 ` [Qemu-devel] [PATCH 1/7] target/ppc: Enable fp exceptions for user-only Richard Henderson
2018-07-03 15:17 ` [Qemu-devel] [PATCH 2/7] target/ppc: Honor fpscr_ze semantics and tidy fdiv Richard Henderson
2018-07-03 15:17 ` [Qemu-devel] [PATCH 3/7] target/ppc: Tidy helper_fmul Richard Henderson
2018-07-03 15:17 ` [Qemu-devel] [PATCH 4/7] target/ppc: Tidy helper_fadd, helper_fsub Richard Henderson
2018-07-03 15:17 ` [Qemu-devel] [PATCH 5/7] target/ppc: Tidy helper_fsqrt Richard Henderson
2018-07-03 15:17 ` [Qemu-devel] [PATCH 6/7] target/ppc: Honor fpscr_ze semantics and tidy fre, fresqrt Richard Henderson
2018-07-03 15:17 ` [Qemu-devel] [PATCH 7/7] target/ppc: Use non-arithmetic conversions for fp load/store Richard Henderson
2018-07-05 16:31   ` Programmingkid
2018-07-05 16:48     ` Richard Henderson
2018-07-05 16:51       ` Programmingkid
2018-07-06  1:03         ` David Gibson [this message]
2018-07-06  9:03       ` [Qemu-devel] [Qemu-ppc] " Mark Cave-Ayland
2018-08-05 11:41         ` Mark Cave-Ayland
2018-08-06  1:33           ` Richard Henderson
2018-07-04  3:31 ` [Qemu-devel] [PATCH for-3.1 0/7] target/ppc fp cleanups David Gibson
2018-07-04 13:42   ` Programmingkid
2018-07-05  0:09     ` David Gibson
2018-07-04 14:15 ` Alex Bennée
2018-07-04 14:49   ` Programmingkid
2018-07-04 15:39     ` Alex Bennée
2018-07-04 16:23       ` Programmingkid
2018-07-04 16:48         ` 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=20180706010315.GI3450@umbus.fritz.box \
    --to=david@gibson.dropbear.id.au \
    --cc=programmingkidx@gmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    --cc=richard.henderson@linaro.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).