xbyak/test/test_avx512.bat

32 lines
842 B
Batchfile
Raw Normal View History

2016-06-08 19:46:11 -07:00
@echo off
set FILTER=cat
set Y=0
2016-07-16 19:30:10 -07:00
if /i "%1"=="min" (
set EXE=nasm.exe
set OPT2=-DXBYAK64 -DMIN_TEST
set OPT3=win64
set FILTER=normalize_prefix
) else if /i "%1"=="64" (
2016-06-08 19:46:11 -07:00
set EXE=nasm.exe
set OPT2=-DXBYAK64
set OPT3=win64
set FILTER=normalize_prefix
) else (
set EXE=nasm.exe
set OPT2=-DXBYAK32
set OPT3=win32
)
2016-06-14 01:47:34 -07:00
call set_opt
bmake -f Makefile.win all
2016-07-16 19:30:10 -07:00
echo cl -I../ make_512.cpp %OPT% %OPT2% /EHs /DUSE_AVX512
cl -I../ make_512.cpp %OPT% %OPT2% /EHs /DUSE_AVX512
make_512 > a.asm
2016-06-08 19:46:11 -07:00
%EXE% -f %OPT3% -l a.lst a.asm
rem connect "?????-" and "??"
awk "{if (index($3, ""-"")) { conti=substr($3, 0, length($3) - 1) } else { conti = conti $3; print conti; conti = """" }} " < a.lst |%FILTER% > ok.lst
2016-07-16 19:30:10 -07:00
make_512 jit > nm.cpp
2016-06-08 19:46:11 -07:00
cl -I../ -DXBYAK_TEST nm_frame.cpp %OPT% %OPT2% /DXBYAK_AVX512
nm_frame |%FILTER% > x.lst
2018-07-24 02:07:35 -07:00
diff -w x.lst ok.lst
2016-06-08 19:46:11 -07:00
wc x.lst