Skip to content

Commit

Permalink
add test of regs of apx
Browse files Browse the repository at this point in the history
  • Loading branch information
herumi committed Oct 13, 2023
1 parent e25b1cd commit 873c93a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion test/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
TARGET = make_nm normalize_prefix bad_address misc cvt_test cvt_test32 noexception misc32 detect_x32
TARGET = make_nm normalize_prefix bad_address misc cvt_test cvt_test32 noexception misc32 detect_x32 apx
XBYAK_INC=../xbyak/xbyak.h
UNAME_S=$(shell uname -s)
ifeq ($(shell ./detect_x32),x32)
Expand Down Expand Up @@ -55,6 +55,8 @@ cvt_test32: cvt_test.cpp ../xbyak/xbyak.h
$(CXX) $(CFLAGS) $< -o $@ -DXBYAK32
noexception: noexception.cpp ../xbyak/xbyak.h
$(CXX) $(CFLAGS) $< -o $@ -fno-exceptions
apx: apx.cpp ../xbyak/xbyak.h
$(CXX) $(CFLAGS) apx.cpp -o $@

test_nm: normalize_prefix $(TARGET)
$(MAKE) -C ../gen
Expand All @@ -71,6 +73,7 @@ endif
./misc
./misc32
./cvt_test
./apx
ifeq ($(BIT),64)
CXX=$(CXX) ./test_address.sh 64
ifneq ($(X32),1)
Expand Down
6 changes: 6 additions & 0 deletions test/test_all.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,10 @@ call test_address
call test_address 64
echo *** test jmp address ***
call test_jmp
echo *** test misc ***
set FILE=misc
call test_misc
echo *** test APX ***
set FILE=apx
call test_misc
echo *** all test end ***
4 changes: 2 additions & 2 deletions test/test_misc.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
call set_opt
bmake -f Makefile.win all
cl -I../ -I./ -DXBYAK_TEST misc.cpp %OPT% /Od /Zi
misc
cl -I../ -I./ -DXBYAK_TEST %FILE%.cpp %OPT% /Od /Zi
%FILE%

0 comments on commit 873c93a

Please sign in to comment.