blob: 2958217b4a9933f04fc7493a45584b524e9615af [file] [log] [blame]
#!/bin/sh
#
# For testing sparse-llvm emitted bytecode
set +e
DIS=$("${LLVM_CONFIG:-llvm-config}" --bindir)/llvm-dis
if [ $# -eq 0 ]; then
echo "$(basename $0): no input files"
exit 1
fi
DIRNAME=$(dirname $0)
$DIRNAME/sparse-llvm "$@" | "$DIS" | grep -v '^target '