1# -*- Mode: makefile -*- 2# 3# x86_64 tests - included from tests/tcg/Makefile.target 4# 5# Currently we only build test-x86_64 and test-i386-ssse3 from 6# $(SRC_PATH)/tests/tcg/i386/ 7# 8 9include $(SRC_PATH)/tests/tcg/i386/Makefile.target 10 11X86_64_TESTS += test-2413 12 13ifeq ($(filter %-linux-user, $(TARGET)),$(TARGET)) 14X86_64_TESTS += vsyscall 15X86_64_TESTS += noexec 16X86_64_TESTS += cmpxchg 17X86_64_TESTS += adox 18X86_64_TESTS += test-1648 19X86_64_TESTS += test-2175 20X86_64_TESTS += cross-modifying-code 21X86_64_TESTS += fma 22TESTS=$(MULTIARCH_TESTS) $(X86_64_TESTS) test-x86_64 23else 24TESTS=$(MULTIARCH_TESTS) 25endif 26 27adox: CFLAGS=-O2 28 29run-test-i386-ssse3: QEMU_OPTS += -cpu max 30run-plugin-test-i386-ssse3-%: QEMU_OPTS += -cpu max 31 32cross-modifying-code: CFLAGS+=-pthread 33cross-modifying-code: LDFLAGS+=-pthread 34 35test-x86_64: LDFLAGS+=-lm -lc 36test-x86_64: test-i386.c test-i386.h test-i386-shift.h test-i386-muldiv.h 37 $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) 38 39%: $(SRC_PATH)/tests/tcg/x86_64/%.c 40 $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) 41