mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-30 17:33:24 +00:00
For PR950:
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
This commit is contained in:
parent
7a11908195
commit
2461b73d9d
12
test/Scripts/notcast
Executable file
12
test/Scripts/notcast
Executable 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
|
Loading…
Reference in New Issue
Block a user