Merge tag 'pull-loongarch-20241016' of https://gitlab.com/gaosong/qemu into staging
[qemu/armbru.git] / tests / tcg / x86_64 / Makefile.target
blob783ab5b21ad37ed69cd0c6c623a6a4bcea274efd
1 # -*- Mode: makefile -*-
3 # x86_64 tests - included from tests/tcg/Makefile.target
5 # Currently we only build test-x86_64 and test-i386-ssse3 from
6 # $(SRC_PATH)/tests/tcg/i386/
9 include $(SRC_PATH)/tests/tcg/i386/Makefile.target
11 X86_64_TESTS += test-2413
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 += test-1648
19 X86_64_TESTS += test-2175
20 TESTS=$(MULTIARCH_TESTS) $(X86_64_TESTS) test-x86_64
21 else
22 TESTS=$(MULTIARCH_TESTS)
23 endif
25 adox: CFLAGS=-O2
27 run-test-i386-ssse3: QEMU_OPTS += -cpu max
28 run-plugin-test-i386-ssse3-%: QEMU_OPTS += -cpu max
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)
34 %: $(SRC_PATH)/tests/tcg/x86_64/%.c
35         $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS)