Clifford Wolf
unread,Aug 15, 2016, 4:22:43 PM8/15/16Sign 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 Pavani Tripathi, RISC-V ISA Dev
Hi,
On Fri, Aug 12, 2016 at 10:19:41AM -0700, Pavani Tripathi wrote:
> But "unimp" is also there under the function <pBitCntFunc.3356>. [...]
<pBitCntFunc.3356> is _not_ a function!
here is the snippet for <pBitCntFunc.3356> from your bitcnts.out:
...
00020300 <pBitCntFunc.3356>:
20300: 010c addi a1,sp,128
20302: 0000 unimp
20304: 0164 addi s1,sp,140
20306: 0000 unimp
20308: 0524 addi s1,sp,648
2030a: 0000 unimp
2030c: 0258 addi a4,sp,260
2030e: 0000 unimp
20310: 03a4 addi s1,sp,456
20312: 0000 unimp
20314: 043c addi a5,sp,520
20316: 0000 unimp
20318: 0834 addi a3,sp,24
2031a: 0000 unimp
0002031c <text.3357>:
...
obviously thats not a function. there are so many things here that make it
obvious. but for starters: it does not end on a 'ret' statement.
Also, it is only used in this code:
68c: fdc42703 lw a4,-36(s0)
690: 00271713 slli a4,a4,0x2
694: 30078793 addi a5,a5,768 # 20300 <pBitCntFunc.3356>
698: 00f707b3 add a5,a4,a5
69c: 0007a783 lw a5,0(a5)
Which obviously is a load from the data stored at <pBitCntFunc.3356>.
regards,
- clifford