mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-24 11:34:50 +08:00
872d11bca9
Some of our tests use VSX or newer VMX instructions, so need to be skipped on older CPUs to avoid SIGILL'ing. Similarly TAR was added in v2.07, and the PMU event used in the stcx fail test only works on Power8 or later. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20200803020719.96114-1-mpe@ellerman.id.au
20 lines
607 B
Makefile
20 lines
607 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
TEST_GEN_PROGS := fpu_syscall fpu_preempt fpu_signal fpu_denormal vmx_syscall vmx_preempt vmx_signal vsx_preempt
|
|
|
|
top_srcdir = ../../../../..
|
|
include ../../lib.mk
|
|
|
|
$(TEST_GEN_PROGS): ../harness.c
|
|
$(TEST_GEN_PROGS): CFLAGS += -O2 -g -pthread -m64 -maltivec
|
|
|
|
$(OUTPUT)/fpu_syscall: fpu_asm.S
|
|
$(OUTPUT)/fpu_preempt: fpu_asm.S
|
|
$(OUTPUT)/fpu_signal: fpu_asm.S
|
|
|
|
$(OUTPUT)/vmx_syscall: vmx_asm.S ../utils.c
|
|
$(OUTPUT)/vmx_preempt: vmx_asm.S ../utils.c
|
|
$(OUTPUT)/vmx_signal: vmx_asm.S ../utils.c
|
|
|
|
$(OUTPUT)/vsx_preempt: CFLAGS += -mvsx
|
|
$(OUTPUT)/vsx_preempt: vsx_asm.S ../utils.c
|