xbyak/test/test_address.bat

39 lines
746 B
Batchfile
Raw Normal View History

2010-04-15 18:33:04 -07:00
@echo off
2013-07-29 21:51:13 -07:00
set FILTER=cat
2010-04-15 18:33:04 -07:00
if /i "%1"=="64" (
set OPT2=-DXBYAK64
set OPT3=win64
) else (
set OPT2=-DXBYAK32
2010-04-15 18:33:04 -07:00
set OPT3=win32
)
pushd ..\gen
call update
popd
if /i "%1"=="64" (
call :sub 1
call :sub 2
) else (
call :sub 1
)
goto end
:sub
echo cl address.cpp %OPT% %OPT2%
2010-04-15 18:33:04 -07:00
cl address.cpp %OPT% %OPT2%
address %1% > a.asm
echo nasm -f %OPT3% -l a.lst a.asm
2010-04-15 18:33:04 -07:00
nasm -f %OPT3% -l a.lst a.asm
2013-07-29 21:51:13 -07:00
awk "{if (index($3, ""-"")) { conti=substr($3, 0, length($3) - 1) } else { conti = conti $3; print conti; conti = """" }} " < a.lst |%FILTER% > ok.lst
echo address %1% jit > nm.cpp
2010-04-15 18:33:04 -07:00
address %1% jit > nm.cpp
echo cl -I../ -DXBYAK_TEST nm_frame.cpp %OPT% %OPT2%
cl -I../ -DXBYAK_TEST nm_frame.cpp %OPT% %OPT2%
2010-04-15 18:33:04 -07:00
nm_frame > x.lst
diff x.lst ok.lst
wc x.lst
:end