From 3c9e3409a5e2b576a7c37ecc616e488157da8e00 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 3 Jun 2008 14:37:10 -0400 Subject: [PATCH] Added a temp shell script to compare our instruction counts vs. Microsoft's. --HG-- branch : trunk --- counts.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 counts.sh diff --git a/counts.sh b/counts.sh new file mode 100755 index 00000000..f3343e2a --- /dev/null +++ b/counts.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +for feh in ??_?_?/*.bytecode ; do + echo -n "$feh " + echo -n `./testparse glsl $feh |grep "INSTRUCTION COUNT: " |perl -w -p -e 's/\AINSTRUCTION COUNT://;'` + echo -n " vs. " + grep "instruction slots used" `echo $feh |perl -w -p -e 's/bytecode\Z/disasm/;'` |perl -w -p -e 's#\A// approximately (\d+) instruction slots used .*?\Z#$1#;' +done +