scripts: fix... damn regex *sigh*
authorBernhard Urban <lewurm@gmail.com>
Mon, 7 Jun 2010 18:37:39 +0000 (20:37 +0200)
committerBernhard Urban <lewurm@gmail.com>
Mon, 7 Jun 2010 18:37:39 +0000 (20:37 +0200)
scripts/bench.sh

index d53bc9872a7d7050c417e0972717394e1825896a..51aa12bae441f153734ef3a669795cd361ca1766 100755 (executable)
@@ -53,7 +53,7 @@ for i in $TEST/*.0; do
     #LABEL=`grep '.globl' $TMPNAME.s | sed 's/^.*\\.globl *\\([a-zA-Z0-9_]\\+\\).*$/\1/g'`
 
     # this won't work, we need all actual labels
     #LABEL=`grep '.globl' $TMPNAME.s | sed 's/^.*\\.globl *\\([a-zA-Z0-9_]\\+\\).*$/\1/g'`
 
     # this won't work, we need all actual labels
-     grep '[a-zA-Z_][a-zA-Z0-9_]*:' $TMPNAME.s | sed 's/^\(.*[^a-zA-Z_.]\)\?\([a-zA-Z0-9_.$]\+\):.*$/\2/g' > $TMPNAME.uniq
+     grep '[a-zA-Z0-9_.$]\+:' $TMPNAME.s | sed 's/^\(.*[^a-zA-Z0-9_.$]\)\?\([a-zA-Z0-9_.$]\+\):.*$/\2/g' > $TMPNAME.uniq
 
      LABEL_ASM=`cat $TMPNAME.uniq`
 
 
      LABEL_ASM=`cat $TMPNAME.uniq`