[Libre-soc-isa] [Bug 532] discuss iterative approach for statistical analysis of effectiveness of Compressed PowerISA encoding

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Tue Nov 24 01:05:39 GMT 2020


https://bugs.libre-soc.org/show_bug.cgi?id=532

--- Comment #15 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
(In reply to Alexandre Oliva from comment #14)
> Created attachment 121 [details]
> python program for insn histogram with per-operand counts
> 
> Here's a python script that counts occurrences of raw opcodes (getting the
> same totals as with the objdump -M histogram patch) and, within them, counts
> occurrences of each operand (registers, conditions, and bit-lengths of
> immediates, offsets, and branch ranges).

ooo i looove it.  i've added it to the ikiwiki git repo
https://git.libre-soc.org/?p=libreriscv.git;a=blob;f=openpower/sv/insn-histogram.py;hb=HEAD

i also did some augmentations to get global subtotals for int regs and
Condition Registers.  the numbers are quite fascinating.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Libre-SOC-ISA mailing list