<div dir="ltr"><div dir="ltr"><div><br class="gmail-Apple-interchange-newline"></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div dir="ltr"><div>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.</div></div></blockquote><div dir="ltr">How about the sign bit? Does fpcr.FZ affect the sign bit in these cases?</div><div dir="ltr"><br></div><div>Thank you,</div><div>David.</div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 6, 2021 at 6:31 AM Steve (Numerics) Canon <<a href="mailto:scanon@apple.com">scanon@apple.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space"><div><blockquote type="cite"><div>On Jul 5, 2021, at 6:48 PM, Jim Thomas <<a href="mailto:jaswthomas@sbcglobal.net" target="_blank">jaswthomas@sbcglobal.net</a>> wrote:</div><br><div><blockquote type="cite" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">I believe that adding flushed subnormals shall be treated as zeros defines<br>their behaviour.<br></blockquote><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">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).</span></div></blockquote><br></div><div>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.</div><div><br></div><div>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.</div><div><br></div><div>– Steve</div></div>_______________________________________________<br>
Cfp-interest mailing list<br>
<a href="mailto:Cfp-interest@oakapple.net" target="_blank">Cfp-interest@oakapple.net</a><br>
<a href="http://mailman.oakapple.net/mailman/listinfo/cfp-interest" rel="noreferrer" target="_blank">http://mailman.oakapple.net/mailman/listinfo/cfp-interest</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Best Regards,<div>David.</div><div><b><br></b></div><div><b>***Email Disclaimer</b>: 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.</div><div><br></div></div></div></div>