| 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 | |
| 9 | include $(SRC_PATH)/tests/tcg/i386/Makefile.target |
| 10 | |
| 11 | X86_64_TESTS += test-2413 |
| 12 | |
| 13 | ifeq ($(filter %-linux-user, $(TARGET)),$(TARGET)) |
| 14 | X86_64_TESTS += vsyscall |
| 15 | X86_64_TESTS += noexec |
| 16 | X86_64_TESTS += cmpxchg |
| 17 | X86_64_TESTS += adox |
| 18 | X86_64_TESTS += segment-prefixes |
| 19 | X86_64_TESTS += test-1648 |
| 20 | X86_64_TESTS += test-2175 |
| 21 | X86_64_TESTS += cross-modifying-code |
| 22 | X86_64_TESTS += fma |
| 23 | TESTS=$(MULTIARCH_TESTS) $(X86_64_TESTS) test-x86_64 |
| 24 | else |
| 25 | TESTS=$(MULTIARCH_TESTS) |
| 26 | endif |
| 27 | |
| 28 | adox: CFLAGS=-O2 |
| 29 | |
| 30 | run-test-i386-ssse3: QEMU_OPTS += -cpu max |
| 31 | run-plugin-test-i386-ssse3-%: QEMU_OPTS += -cpu max |
| 32 | |
| 33 | cross-modifying-code: CFLAGS+=-pthread |
| 34 | cross-modifying-code: LDFLAGS+=-pthread |
| 35 | |
| 36 | test-x86_64: LDFLAGS+=-lm -lc |
| 37 | test-x86_64: test-i386.c test-i386.h test-i386-shift.h test-i386-muldiv.h |
| 38 | $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) |
| 39 | |
| 40 | %: $(SRC_PATH)/tests/tcg/x86_64/%.c |
| 41 | $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) |