diff options
| author | Reid Spencer <rspencer@reidspencer.com> | 2006-11-04 01:11:19 +0000 |
|---|---|---|
| committer | Reid Spencer <rspencer@reidspencer.com> | 2006-11-04 01:11:19 +0000 |
| commit | de6bce9e02f52ac32b539e1c37afbd4e0b921bd0 (patch) | |
| tree | ef84ad264067cba26c8addb97894d8878707e552 | |
| parent | 260a93abc2101c487c6ee1de4a20e4b7aee3e7ab (diff) | |
| download | bcm5719-llvm-de6bce9e02f52ac32b539e1c37afbd4e0b921bd0.tar.gz bcm5719-llvm-de6bce9e02f52ac32b539e1c37afbd4e0b921bd0.zip | |
Okay, need a pattern before and after the cast pattern.
llvm-svn: 31443
| -rwxr-xr-x | llvm/test/Scripts/notcast | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/test/Scripts/notcast b/llvm/test/Scripts/notcast index e94bb1644c3..fc1e566771e 100755 --- a/llvm/test/Scripts/notcast +++ b/llvm/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 |

