(no commit message)
[libreriscv.git] / openpower / sv / insn-histogram.py
index d48b179e6dd1f5d78da037962bd08f8314680ea9..2f2f6c9ec0f05c707cbf79fca38ef48a788189f4 100644 (file)
@@ -1,6 +1,28 @@
 #! /bin/env python3
 # see https://bugs.libre-soc.org/show_bug.cgi?id=532
 
+# Print a per-opcode histogram for ppc asm.
+
+# Copyright 2020 Alexandre Oliva
+# Copyright 2020 Luke Kenneth Casson Leighton
+
+# This script is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3, or (at your option)
+# any later version.
+
+# This script is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this script; see the file COPYING3.  If not see
+# <http://www.gnu.org/licenses/>.
+
+# Originally by Alexandre Oliva <oliva@gnu.org>.
+
+
 # Feed this script the output of:
 # powerpc64le-gnu-objdump -d -M raw --no-show-raw-insn ppc-prog