This patch series adds code generation to "ptest" (enable with the
option -c). Some of this used to live in wernermisc/m1/perf/, but
it's considerably cleaner now.
I've also updated the PFPU code evaluator to handle register
renaming and make do with the reduced information we have after
compilation. It's not perfect yet, but it should already be useful
for debugging divergent code generation.
All the patches currently in the patch pool also pass code
generation (which adds extra checks), even under valgrind.
- Werner
Werner Almesberger (5):
compiler/ptest: new option -c to run code generation
compiler/test: test code generation and enable code generation for
patch pool
compiler/file2h: produce valid empty string if the file is empty
compiler/ptest: dump registers and code
compiler/ptest/eval.pl: experimental PFPU code evaluator
src/compiler/compiler.c | 10 +++-
src/compiler/compiler.h | 7 ++
src/compiler/file2h | 2 +-
src/compiler/ptest/Makefile | 19 ++++++-
src/compiler/ptest/eval.pl | 98 +++++++++++++++++++++++++++++++++
src/compiler/ptest/ptest.c | 116 +++++++++++++++++++++++++++++++--------
src/compiler/ptest/standalone.h | 12 ++++
src/compiler/test/codegen | 30 ++++++++++
src/compiler/test/patches | 2 +-
src/renderer/framedescriptor.h | 4 +
10 files changed, 270 insertions(+), 30 deletions(-)
create mode 100755 src/compiler/ptest/eval.pl
create mode 100644 src/compiler/ptest/standalone.h
create mode 100755 src/compiler/test/codegen
_______________________________________________
http://lists.milkymist.org/listinfo.cgi/devel-milkymist.org
IRC: #milkymist@Freenode