aboutsummaryrefslogtreecommitdiffstats
path: root/test/Scripts
diff options
context:
space:
mode:
Diffstat (limited to 'test/Scripts')
-rwxr-xr-xtest/Scripts/notcast5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/Scripts/notcast b/test/Scripts/notcast
index e94bb16..fc1e566 100755
--- a/test/Scripts/notcast
+++ b/test/Scripts/notcast
@@ -6,10 +6,11 @@
#
# Syntax: notcast tailexpr
#
-# tailexpr - optionally allows a regular expression to go at the end
+# postpat - optionally allows a regular expression to go at the end
+# prepat - optionally allow a regular expression to go at the start
#
-if grep '\(\([sz]ext\)\|\(trunc\)\|\(fp2[us]int\)\|\([us]int2fp\)\|\(bitconvert\)\|\(fpext\)\|\(fptrunc\)\)'"$1"
+if grep "$2"'\(\([sz]ext\)\|\(trunc\)\|\(fp2[us]int\)\|\([us]int2fp\)\|\(bitconvert\)\|\(fpext\)\|\(fptrunc\)\)'"$1"
then exit 1
else exit 0
fi