diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/Makefile | 4 | ||||
-rw-r--r-- | test/misc.cpp | 14 |
2 files changed, 16 insertions, 2 deletions
diff --git a/test/Makefile b/test/Makefile index ac69b3e..b9dd413 100644 --- a/test/Makefile +++ b/test/Makefile @@ -22,7 +22,7 @@ all: $(TARGET) CFLAGS_WARN=-Wall -Wextra -Wformat=2 -Wcast-qual -Wcast-align -Wwrite-strings -Wfloat-equal -Wpointer-arith -CFLAGS=-O2 -fomit-frame-pointer -Wall -fno-operator-names -I../ -I./ $(CFLAGS_WARN) #-std=c++0x +CFLAGS=-O2 -fomit-frame-pointer -Wall -fno-operator-names -I../ -I./ $(CFLAGS_WARN) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) #-std=c++0x make_nm: $(CXX) $(CFLAGS) make_nm.cpp -o $@ normalize_prefix: normalize_prefix.cpp ../xbyak/xbyak.h @@ -95,7 +95,7 @@ test: $(MAKE) test_avx512 clean: - rm -rf *.o $(TARGET) lib_run nm.cpp nm_frame make_512 + $(RM) a.asm *.lst *.obj *.o $(TARGET) lib_run nm.cpp nm_frame make_512 lib_run: lib_test.cpp lib_run.cpp lib.h $(CXX) $(CFLAGS) lib_run.cpp lib_test.cpp -o lib_run diff --git a/test/misc.cpp b/test/misc.cpp index 0e1c3f4..140072e 100644 --- a/test/misc.cpp +++ b/test/misc.cpp @@ -23,6 +23,20 @@ CYBOZU_TEST_AUTO(setSize) } code; } +CYBOZU_TEST_AUTO(badSSE) +{ + struct Code : Xbyak::CodeGenerator { + Code() + { + CYBOZU_TEST_EXCEPTION(paddd(xm16, xm1), Xbyak::Error); + CYBOZU_TEST_EXCEPTION(pslld(xm16, 1), Xbyak::Error); + CYBOZU_TEST_EXCEPTION(movapd(xm16, xm1), Xbyak::Error); + CYBOZU_TEST_EXCEPTION(movhpd(xm16, ptr[eax]), Xbyak::Error); + CYBOZU_TEST_EXCEPTION(pextrb(eax, xm16, 1), Xbyak::Error); + } + } code; +} + CYBOZU_TEST_AUTO(compOperand) { using namespace Xbyak::util; |