forked from OSchip/llvm-project
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:
parent
6291ddca16
commit
c533824a9e
|
@ -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
|
Loading…
Reference in New Issue