Alex Bennée | 3a082ec | 2018-04-17 11:14:37 +0100 | [diff] [blame] | 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 |
Ilya Leoshkevich | f664877 | 2021-05-19 06:57:38 +0200 | [diff] [blame] | 6 | # $(SRC_PATH)/tests/tcg/i386/ |
Alex Bennée | 3a082ec | 2018-04-17 11:14:37 +0100 | [diff] [blame] | 7 | # |
| 8 | |
Paolo Bonzini | fc76c56 | 2019-08-07 16:35:22 +0200 | [diff] [blame] | 9 | include $(SRC_PATH)/tests/tcg/i386/Makefile.target |
| 10 | |
Richard Henderson | a71d9df | 2024-06-30 19:46:23 -0700 | [diff] [blame] | 11 | X86_64_TESTS += test-2413 |
| 12 | |
Paolo Bonzini | 3996dab | 2022-04-19 10:10:08 +0100 | [diff] [blame] | 13 | ifeq ($(filter %-linux-user, $(TARGET)),$(TARGET)) |
Ilya Leoshkevich | f664877 | 2021-05-19 06:57:38 +0200 | [diff] [blame] | 14 | X86_64_TESTS += vsyscall |
Ilya Leoshkevich | 9509366 | 2022-08-17 17:05:05 +0200 | [diff] [blame] | 15 | X86_64_TESTS += noexec |
Paolo Bonzini | d1bb978 | 2022-09-11 14:04:36 +0200 | [diff] [blame] | 16 | X86_64_TESTS += cmpxchg |
Richard Henderson | 6fbef94 | 2023-01-14 15:21:03 -1000 | [diff] [blame] | 17 | X86_64_TESTS += adox |
Richard Henderson | a7365e9 | 2024-04-08 14:30:30 -1000 | [diff] [blame] | 18 | X86_64_TESTS += test-1648 |
Richard Henderson | 83a3a20 | 2024-08-01 17:57:45 +1000 | [diff] [blame] | 19 | X86_64_TESTS += test-2175 |
Paolo Bonzini | fc76c56 | 2019-08-07 16:35:22 +0200 | [diff] [blame] | 20 | TESTS=$(MULTIARCH_TESTS) $(X86_64_TESTS) test-x86_64 |
Alex Bennée | 5343a83 | 2021-09-17 17:23:24 +0100 | [diff] [blame] | 21 | else |
| 22 | TESTS=$(MULTIARCH_TESTS) |
| 23 | endif |
Paolo Bonzini | 9e8504c | 2022-08-25 14:27:00 +0200 | [diff] [blame] | 24 | |
Richard Henderson | 6fbef94 | 2023-01-14 15:21:03 -1000 | [diff] [blame] | 25 | adox: CFLAGS=-O2 |
| 26 | |
Paolo Bonzini | 9e8504c | 2022-08-25 14:27:00 +0200 | [diff] [blame] | 27 | run-test-i386-ssse3: QEMU_OPTS += -cpu max |
| 28 | run-plugin-test-i386-ssse3-%: QEMU_OPTS += -cpu max |
Alex Bennée | 3a082ec | 2018-04-17 11:14:37 +0100 | [diff] [blame] | 29 | |
| 30 | test-x86_64: LDFLAGS+=-lm -lc |
| 31 | test-x86_64: test-i386.c test-i386.h test-i386-shift.h test-i386-muldiv.h |
| 32 | $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) |
Ilya Leoshkevich | f664877 | 2021-05-19 06:57:38 +0200 | [diff] [blame] | 33 | |
Ilya Leoshkevich | 9509366 | 2022-08-17 17:05:05 +0200 | [diff] [blame] | 34 | %: $(SRC_PATH)/tests/tcg/x86_64/%.c |
Ilya Leoshkevich | f664877 | 2021-05-19 06:57:38 +0200 | [diff] [blame] | 35 | $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) |