From c533824a9e7f721ebdd72bd86fa343325f023257 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Sat, 4 Nov 2006 00:49:52 +0000 Subject: [PATCH] For PR950: A little script to return 1 if it encounters any of the cast instructions on the stdin. llvm-svn: 31441 --- llvm/test/Scripts/notcast | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 llvm/test/Scripts/notcast diff --git a/llvm/test/Scripts/notcast b/llvm/test/Scripts/notcast new file mode 100755 index 000000000000..c6ddb4390fd5 --- /dev/null +++ b/llvm/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