[Cfp-interest 2053] Re: Subnormals

David Chen dave.h.chen at gmail.com
Tue Jul 6 10:24:21 PDT 2021


The effects of the FZ bit in the ARM FPCR are defined by the FPUnpack() and
FPRound() operations in ARM’s pseudocode documentation. If the encoded
exponent of an input is zero and fpcr.FZ is 1, then the unpacked input
value is zero. If a result is tiny and fpcr.FZ is 1, then the result is
zero.

How about the sign bit?  Does fpcr.FZ affect the sign bit in these cases?

Thank you,
David.


On Tue, Jul 6, 2021 at 6:31 AM Steve (Numerics) Canon <scanon at apple.com>
wrote:

> On Jul 5, 2021, at 6:48 PM, Jim Thomas <jaswthomas at sbcglobal.net> wrote:
>
> I believe that adding flushed subnormals shall be treated as zeros defines
> their behaviour.
>
>
> I believe ARM FTZ mode causes subnormal results to be set to zero. Saying
> it treats them as zero suggests that they are still subnormal (in some
> sense).
>
>
> The effects of the FZ bit in the ARM FPCR are defined by the FPUnpack()
> and FPRound() operations in ARM’s pseudocode documentation. If the encoded
> exponent of an input is zero and fpcr.FZ is 1, then the unpacked input
> value is zero. If a result is tiny and fpcr.FZ is 1, then the result is
> zero.
>
> These two aspects correspond to the x86 MXCSR bits DAZ and FTZ,
> respectively, except that x86 detects tininess after rounding and ARM
> detects it before rounding, so exactly which results are flushed are
> different for multiply and multiply-add.
>
> – Steve
> _______________________________________________
> Cfp-interest mailing list
> Cfp-interest at oakapple.net
> http://mailman.oakapple.net/mailman/listinfo/cfp-interest
>


-- 
Best Regards,
David.

****Email Disclaimer*: This email is intended only for addressee(s), may be
confidential or proprietary, and may constitute inside information that is
protected from disclosure under law. If you are not the intended recipient,
you are hereby notified not to read, disclose, distribute or otherwise use
this email.  If you are not the intended recipient, please inform the
sender by reply email and destroy all copies of the original message.
Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.oakapple.net/pipermail/cfp-interest/attachments/20210706/91c44e66/attachment.htm>


More information about the Cfp-interest mailing list