diff options
Diffstat (limited to 'externals/xbyak/test/test_avx.sh')
-rwxr-xr-x | externals/xbyak/test/test_avx.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/externals/xbyak/test/test_avx.sh b/externals/xbyak/test/test_avx.sh index 34dc1e55..647d4d3a 100755 --- a/externals/xbyak/test/test_avx.sh +++ b/externals/xbyak/test/test_avx.sh @@ -1,6 +1,9 @@ #!/bin/sh +set -e + FILTER="grep -v warning" +CXX=${CXX:=g++} case $1 in Y) @@ -31,9 +34,9 @@ Y64) ;; esac -CFLAGS="-Wall -fno-operator-names -I../ $OPT2 -DUSE_AVX" +CFLAGS="-Wall -I../ $OPT2 -DUSE_AVX" echo "compile make_nm.cpp" -g++ $CFLAGS make_nm.cpp -o make_nm +$CXX $CFLAGS make_nm.cpp -o make_nm ./make_nm > a.asm echo "asm" @@ -43,6 +46,6 @@ awk '$3 != "1+1" {printf "%s", sub(/-$/, "", $3) ? $3 : $3 ORS}' a.lst | $FILTER echo "xbyak" ./make_nm jit > nm.cpp echo "compile nm_frame.cpp" -g++ $CFLAGS -DXBYAK_TEST nm_frame.cpp -o nm_frame +$CXX $CFLAGS -DXBYAK_TEST nm_frame.cpp -o nm_frame ./nm_frame | $FILTER > x.lst diff -B ok.lst x.lst && echo "ok" |