[llvm-commits] CVS: llvm/test/Scripts/notcast
Reid Spencer
reid at x10sys.com
Fri Nov 3 16:50:06 PST 2006
Changes in directory llvm/test/Scripts:
notcast added (r1.1)
---
Log message:
For PR950: http://llvm.org/PR950 :
A little script to return 1 if it encounters any of the cast instructions
on the stdin.
---
Diffs of the changes: (+12 -0)
notcast | 12 ++++++++++++
1 files changed, 12 insertions(+)
Index: llvm/test/Scripts/notcast
diff -c /dev/null llvm/test/Scripts/notcast:1.1
*** /dev/null Fri Nov 3 18:50:02 2006
--- llvm/test/Scripts/notcast Fri Nov 3 18:49:52 2006
***************
*** 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
More information about the llvm-commits
mailing list