projects
/
testub10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b4ea4c5
)
scripts: fix... damn regex *sigh*
author
Bernhard Urban
<lewurm@gmail.com>
Mon, 7 Jun 2010 18:37:39 +0000
(20:37 +0200)
committer
Bernhard Urban
<lewurm@gmail.com>
Mon, 7 Jun 2010 18:37:39 +0000
(20:37 +0200)
scripts/bench.sh
patch
|
blob
|
history
diff --git
a/scripts/bench.sh
b/scripts/bench.sh
index d53bc9872a7d7050c417e0972717394e1825896a..51aa12bae441f153734ef3a669795cd361ca1766 100755
(executable)
--- a/
scripts/bench.sh
+++ b/
scripts/bench.sh
@@
-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-Z
0-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`