Merge commit '0a097849af1bcd979ff4b430a03971f16822cbcb' as 'external/xbyak'

This commit is contained in:
Simone Coco
2025-12-23 16:51:03 +01:00
148 changed files with 33794 additions and 0 deletions

26
external/xbyak/test/test_by_xed.sh vendored Executable file
View File

@@ -0,0 +1,26 @@
#!/bin/sh
set -e
XED=${XED:=xed}
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
$XED -64 -ir bin > out.txt
$PYTHON test_by_xed.py $TARGET out.txt