summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-11-04 00:58:39 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-11-04 00:58:39 +0000
commit260a93abc2101c487c6ee1de4a20e4b7aee3e7ab (patch)
tree3ccb62a02529fc881ce7f98042dd4803c43733fb
parentc533824a9e7f721ebdd72bd86fa343325f023257 (diff)
downloadbcm5719-llvm-260a93abc2101c487c6ee1de4a20e4b7aee3e7ab.tar.gz
bcm5719-llvm-260a93abc2101c487c6ee1de4a20e4b7aee3e7ab.zip
Allow the regular expression to be extended by a parameter.
llvm-svn: 31442
-rwxr-xr-xllvm/test/Scripts/notcast7
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/test/Scripts/notcast b/llvm/test/Scripts/notcast
index c6ddb4390fd..e94bb1644c3 100755
--- a/llvm/test/Scripts/notcast
+++ b/llvm/test/Scripts/notcast
@@ -4,9 +4,12 @@
#
# Synopsis: Returns 0 if the input does not contain a cast operator
#
-# Syntax: notcast
+# Syntax: notcast tailexpr
+#
+# tailexpr - optionally allows a regular expression to go at the end
+#
-if grep '\([sz]ext\)\|\(trunc\)\|\(fp2[us]int\)\|\([us]int2fp\)\|\(bitconvert\)\|\(fpext\)\|\(fptrunc\)'
+if grep '\(\([sz]ext\)\|\(trunc\)\|\(fp2[us]int\)\|\([us]int2fp\)\|\(bitconvert\)\|\(fpext\)\|\(fptrunc\)\)'"$1"
then exit 1
else exit 0
fi
OpenPOWER on IntegriCloud