Squashed 'external/xbyak/' content from commit 431abd86
git-subtree-dir: external/xbyak git-subtree-split: 431abd865e70a46d56f5aa0e1f87572decb60169
This commit is contained in:
Executable
+29
@@ -0,0 +1,29 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
XED=${XED:=xed}
|
||||
XED_OPT=${XED_OPT:=-64 -set PREFETCHIT 1 -set PREFETCHRST 1}
|
||||
#XED_OPT=${XED_OPT:=-64 -chip-check FUTURE}
|
||||
CXX=${CXX:=g++}
|
||||
CFLAGS_USER=${CFLAGS}
|
||||
CFLAGS_WARN="$(cat CFLAGS_WARN.cfg)"
|
||||
PYTHON=${PYTHON:=python3}
|
||||
echo $XED
|
||||
|
||||
if [ $# -ne 1 ]; then
|
||||
echo "./test_by_xed.sh <xbyak-cpp>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
TARGET=$1
|
||||
|
||||
CFLAGS="$CFLAGS_USER $CFLAGS_WARN -I ../"
|
||||
|
||||
echo "test:" $TARGET
|
||||
cp $TARGET tmp.cpp
|
||||
$CXX $CFLAGS test_by_xed.cpp -o test_by_xed
|
||||
./test_by_xed || (echo "ERR test_by_xed"; exit 1)
|
||||
echo "$XED ${XED_OPT} -ir bin > out.txt"
|
||||
$XED ${XED_OPT} -ir bin > out.txt || (echo "ERR xed"; exit 1)
|
||||
$PYTHON test_by_xed.py $TARGET out.txt || (echo "ERR test_by_xed.py"; exit 1)
|
||||
|
||||
Reference in New Issue
Block a user