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



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.

Chris


At 5:58 PM -0700 10/29/04, James W. Walker wrote:
John Stiles <email@hidden> wrote:

Well, what does the disassembly show?

For what it's worth, the assembly lines identified as corresponding to that source line are...


addis    r2,r27,1
lfs      f1,8(r28)
fsubs    f5,f3,f0
lfs      f0,12(r28)
fsubs    f2,f2,f1
lfs      f3,-9580(r2)
fsubs    f4,f4,f0
stfs     f5,16(r28)
frsp     f0,f5
frsp     f1,f2
stfs     f2,20(r28)
frsp     f2,f4
fmuls    f5,f3,f0
stfs     f4,24(r28)
fmuls    f4,f3,f1
lfs      f0,4(r28)
fmuls    f3,f3,f2
lfs      f1,8(r28)
fadds    f5,f0,f5
lfs      f2,12(r28)
fadds    f1,f1,f4
stfs     f5,28(r28)
fadds    f0,f2,f3
stfs     f1,32(r28)
stfs     f0,36(r28)
lwz      r0,104(r1)
addi     r1,r1,96
mtlr     r0
lmw      r27,-20(r1)

--
  James W. Walker, ScriptPerfection Enterprises, Inc.
  <http://www.write-brain.com/>
_______________________________________________
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

_______________________________________________ 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>)



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.