diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-11-04 00:49:52 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-11-04 00:49:52 +0000 |
commit | 2461b73d9d5abe63ebe52d909b3cd07090d57c52 (patch) | |
tree | 60e916dd535bff4be16f2d04f313d58c5f8efebb | |
parent | 7a11908195a6d6bacd13dd49d6f15f18e85ef911 (diff) |
For PR950:
A little script to return 1 if it encounters any of the cast instructions
on the stdin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31441 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-x | test/Scripts/notcast | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Scripts/notcast b/test/Scripts/notcast new file mode 100755 index 0000000000..c6ddb4390f --- /dev/null +++ b/test/Scripts/notcast @@ -0,0 +1,12 @@ +#!/bin/sh +# +# Program: notcast +# +# Synopsis: Returns 0 if the input does not contain a cast operator +# +# Syntax: notcast + +if grep '\([sz]ext\)\|\(trunc\)\|\(fp2[us]int\)\|\([us]int2fp\)\|\(bitconvert\)\|\(fpext\)\|\(fptrunc\)' +then exit 1 +else exit 0 +fi |