For PR950:

A little script to return 1 if it encounters any of the cast instructions
on the stdin.

llvm-svn: 31441
This commit is contained in:
Reid Spencer 2006-11-04 00:49:52 +00:00
parent 6291ddca16
commit c533824a9e
1 changed files with 12 additions and 0 deletions

12
llvm/test/Scripts/notcast Executable file
View File

@ -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