blob: 783ab5b21ad37ed69cd0c6c623a6a4bcea274efd [file] [log] [blame]
Alex Bennée3a082ec2018-04-17 11:14:37 +01001# -*- 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 Leoshkevichf6648772021-05-19 06:57:38 +02006# $(SRC_PATH)/tests/tcg/i386/
Alex Bennée3a082ec2018-04-17 11:14:37 +01007#
8
Paolo Bonzinifc76c562019-08-07 16:35:22 +02009include $(SRC_PATH)/tests/tcg/i386/Makefile.target
10
Richard Hendersona71d9df2024-06-30 19:46:23 -070011X86_64_TESTS += test-2413
12
Paolo Bonzini3996dab2022-04-19 10:10:08 +010013ifeq ($(filter %-linux-user, $(TARGET)),$(TARGET))
Ilya Leoshkevichf6648772021-05-19 06:57:38 +020014X86_64_TESTS += vsyscall
Ilya Leoshkevich95093662022-08-17 17:05:05 +020015X86_64_TESTS += noexec
Paolo Bonzinid1bb9782022-09-11 14:04:36 +020016X86_64_TESTS += cmpxchg
Richard Henderson6fbef942023-01-14 15:21:03 -100017X86_64_TESTS += adox
Richard Hendersona7365e92024-04-08 14:30:30 -100018X86_64_TESTS += test-1648
Richard Henderson83a3a202024-08-01 17:57:45 +100019X86_64_TESTS += test-2175
Paolo Bonzinifc76c562019-08-07 16:35:22 +020020TESTS=$(MULTIARCH_TESTS) $(X86_64_TESTS) test-x86_64
Alex Bennée5343a832021-09-17 17:23:24 +010021else
22TESTS=$(MULTIARCH_TESTS)
23endif
Paolo Bonzini9e8504c2022-08-25 14:27:00 +020024
Richard Henderson6fbef942023-01-14 15:21:03 -100025adox: CFLAGS=-O2
26
Paolo Bonzini9e8504c2022-08-25 14:27:00 +020027run-test-i386-ssse3: QEMU_OPTS += -cpu max
28run-plugin-test-i386-ssse3-%: QEMU_OPTS += -cpu max
Alex Bennée3a082ec2018-04-17 11:14:37 +010029
30test-x86_64: LDFLAGS+=-lm -lc
31test-x86_64: test-i386.c test-i386.h test-i386-shift.h test-i386-muldiv.h
32 $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS)
Ilya Leoshkevichf6648772021-05-19 06:57:38 +020033
Ilya Leoshkevich95093662022-08-17 17:05:05 +020034%: $(SRC_PATH)/tests/tcg/x86_64/%.c
Ilya Leoshkevichf6648772021-05-19 06:57:38 +020035 $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS)