projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
7a11908
)
For PR950:
author
Reid Spencer
<rspencer@reidspencer.com>
Sat, 4 Nov 2006 00:49:52 +0000
(
00:49
+0000)
committer
Reid 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]
patch
|
blob
diff --git a/test/Scripts/notcast
b/test/Scripts/notcast
new file mode 100755
(executable)
index 0000000..
c6ddb43
--- /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