hw/intc/loongson: Fix incorrect 'core' calculation in liointc_read/write
[qemu/ar7.git] / tests / tcg / i386 / Makefile.target
bloba66232a67ddb1bea11a14c55383069b1ca6e2123
1 # i386 cross compile notes
3 I386_SRC=$(SRC_PATH)/tests/tcg/i386
5 # Set search path for all sources
6 VPATH           += $(I386_SRC)
8 I386_SRCS=$(notdir $(wildcard $(I386_SRC)/*.c))
9 ALL_X86_TESTS=$(I386_SRCS:.c=)
10 SKIP_I386_TESTS=test-i386-ssse3
11 X86_64_TESTS:=$(filter test-i386-ssse3, $(ALL_X86_TESTS))
13 test-i386-sse-exceptions: CFLAGS += -msse4.1 -mfpmath=sse
14 run-test-i386-sse-exceptions: QEMU_OPTS += -cpu max
15 run-plugin-test-i386-sse-exceptions-%: QEMU_OPTS += -cpu max
17 test-i386-pcmpistri: CFLAGS += -msse4.2
18 run-test-i386-pcmpistri: QEMU_OPTS += -cpu max
19 run-plugin-test-i386-pcmpistri-%: QEMU_OPTS += -cpu max
22 # hello-i386 is a barebones app
24 hello-i386: CFLAGS+=-ffreestanding
25 hello-i386: LDFLAGS+=-nostdlib
28 # test-386 includes a couple of additional objects that need to be linked together
31 test-i386: test-i386.c test-i386-code16.S test-i386-vm86.S test-i386.h test-i386-shift.h test-i386-muldiv.h
32         $(CC) $(CFLAGS) $(LDFLAGS) $(EXTRA_CFLAGS) -o $@ \
33            $(<D)/test-i386.c $(<D)/test-i386-code16.S $(<D)/test-i386-vm86.S -lm
35 ifeq ($(SPEED), slow)
37 test-i386-fprem.ref: test-i386-fprem
38         $(call quiet-command, ./$< > $@,"GENREF","generating $@")
40 run-test-i386-fprem: TIMEOUT=60
41 run-test-i386-fprem: test-i386-fprem test-i386-fprem.ref
42         $(call run-test,test-i386-fprem, $(QEMU) $<,"$< on $(TARGET_NAME)")
43         $(call diff-out,test-i386-fprem, test-i386-fprem.ref)
44 else
45 SKIP_I386_TESTS+=test-i386-fprem
46 endif
48 # Update TESTS
49 I386_TESTS:=$(filter-out $(SKIP_I386_TESTS), $(ALL_X86_TESTS))
50 TESTS=$(MULTIARCH_TESTS) $(I386_TESTS)
52 # On i386 and x86_64 Linux only supports 4k pages (large pages are a different hack)
53 EXTRA_RUNS+=run-test-mmap-4096