From: lkcl Date: Fri, 20 Nov 2020 15:48:02 +0000 (+0000) Subject: (no commit message) X-Git-Tag: convert-csv-opcode-to-binary~1713 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b3f46ea68e484eb734aa8c0b6ba3d4d390efd4c2;p=libreriscv.git --- diff --git a/openpower/sv/16_bit_compressed.mdwn b/openpower/sv/16_bit_compressed.mdwn index ecddad4b3..6fb705c91 100644 --- a/openpower/sv/16_bit_compressed.mdwn +++ b/openpower/sv/16_bit_compressed.mdwn @@ -486,3 +486,11 @@ space (when RA==0) | 1 0 1 1 | | | 001.1 | 0 | | M | | 1 1 0 0 | | | 001.1 | 0 | | M | | 1 1 1 1 | | | 001.1 | 0 10 | | M | + +# Analysis techniques + + objdump -d --no-show-raw-insn /bin/bash | sed 'y/\t/ /; + s/^[ x0-9A-F]*: *\([a-z.]\+\) *\(.*\)/\1 \2 /p; d' | + sed 's/\([, (]\)r[1-9][0-9]*/\1r1/g; + s/\([ ,]\)-*[0-9]\+\([^0-9]\)/\11\2/g' | sort | uniq --count | + sort -n | less