xbyak/test/test_address.bat

38 lines
770 B
Batchfile
Raw Normal View History

2010-04-15 18:33:04 -07:00
@echo off
2017-08-21 23:53:34 -07:00
set FILTER=grep -v warning
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
)
2016-06-14 01:47:34 -07:00
call set_opt
bmake -f Makefile.win all
2010-04-15 18:33:04 -07:00
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
2018-07-24 02:07:35 -07:00
diff -w x.lst ok.lst
2010-04-15 18:33:04 -07:00
wc x.lst
:end