From: Reid Spencer Date: Sat, 4 Nov 2006 00:49:52 +0000 (+0000) Subject: For PR950: X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2461b73d9d5abe63ebe52d909b3cd07090d57c52;p=oota-llvm.git 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 --- diff --git a/test/Scripts/notcast b/test/Scripts/notcast new file mode 100755 index 00000000000..c6ddb4390fd --- /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