For PR950:
authorReid Spencer <rspencer@reidspencer.com>
Sat, 4 Nov 2006 00:49:52 +0000 (00:49 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sat, 4 Nov 2006 00:49:52 +0000 (00:49 +0000)
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

test/Scripts/notcast [new file with mode: 0755]

diff --git a/test/Scripts/notcast b/test/Scripts/notcast
new file mode 100755 (executable)
index 0000000..c6ddb43
--- /dev/null
@@ -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