Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "FP precision conv" with no floats in sight




On 30 Oct 2004, at 04:00, Chris Cox wrote:

There are no vectors there.
There are lots of single precision floats (lfs, stfs, fmuls), and lots of results being rounded to single precision (frsp).


Several of the frsp instructions look pointless since you just loaded the value as single precision.

You're right several are pointless, but at least the ones like this may not be (although they seem so at first sight):


frsp     f1,f2
stfs     f2,20(r28)

The reason is that some PPC's have a bug, whereby they throw an exception if you try to store an fpu value as a single without first explicitly rounding it to a single. I have to admit I'm not sure whether it can also pop up if the value in question has only been "touched" by single precision fpu ops though.



Jonas

_______________________________________________
Do not post admin requests to the list. They will be ignored.
PerfOptimization-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/perfoptimization-dev/email@hidden

This email sent to email@hidden
References: 
 >"FP precision conv" with no floats in sight (From: "James W. Walker" <email@hidden>)
 >Re: "FP precision conv" with no floats in sight (From: John Stiles <email@hidden>)
 >Re: "FP precision conv" with no floats in sight (From: "James W. Walker" <email@hidden>)
 >Re: "FP precision conv" with no floats in sight (From: Chris Cox <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.