X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=testub10.git;a=blobdiff_plain;f=scripts%2Fbench.sh;h=02738d644ec9594e4ffda1ea7807e4dade34ebca;hp=4973e7b2e9261da2faf64e0d912b0cffad48a83c;hb=738801cc5462c5ee2d57f5f20db848cf24044ec6;hpb=74fb84fbb5a8783ff5d582eb2ec797a3590f7655 diff --git a/scripts/bench.sh b/scripts/bench.sh index 4973e7b..02738d6 100755 --- a/scripts/bench.sh +++ b/scripts/bench.sh @@ -48,12 +48,6 @@ for i in $TEST/*.0; do # create executable gcc -DCALL=\"${i%.0}.call\" -o $TMPNAME $TMPNAME.s $TESTMAIN $CALLCONV - # count instructions - $DUMPINSTR $TMPNAME call >/dev/null - if [ $? != 0 ]; then - echo "$bi FEHLGESCHLAGEN" - continue - fi # extract the exported symbols from the .s file #LABEL=`grep '.globl' $TMPNAME.s | sed 's/^.*\\.globl *\\([a-zA-Z0-9_]\\+\\).*$/\1/g'` @@ -61,9 +55,16 @@ for i in $TEST/*.0; do # this won't work, we need all actual labels LABEL=`grep '[a-zA-Z0-9_.$]\\+:' $TMPNAME.s | sed 's/^\\(.*[^a-zA-Z0-9_.$]\\)\\?\\([a-zA-Z0-9_.$]\\+\\):.*$/\2/g'` + rm -f $TMPNAME.trace MATCHES=0 for j in $LABEL; do - MATCHES="$MATCHES\\|$j" + MATCHES="$MATCHES\\|$j" + # count instructions + $DUMPINSTR $TMPNAME $j > /dev/null + if [ $? != 0 ]; then + echo "$bi FEHLGESCHLAGEN" + continue + fi done # filter trace