Jianbin Fang
unread,May 15, 2012, 6:11:02 PM5/15/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to asfermi
Hi guys,
I am still trying the code in /svn/test/....
When reading the code in '1' (there are 4 test demo code in the test
directory), I find that there is possibly an typo error on line 27:
--
27 IMAD R10, R5, 0x14, R10;
--
I guess it should be like this:
--
27 IMAD R10, R5, 0x4, R10;
--
It is correct? Or I misunderstood the code?
Another question about how to measure the number of cycle one
instruction takes for execution? In my option, it should be like this
(using the special register SR_ClockLo):
....
S2R R0, SR_ClockLo
ST.E [Rx], Ry // Rx, and Ry are specified registers
S2R R1, SR_ClockLo
...
When outputing the R0, R1, we can obtain the number of cycles (the
store instruction takes) by subtracting R0 from R1.
Is it correct?
Thanks,
Jianbin