summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/powerpc/math/Makefile
diff options
context:
space:
mode:
authorCyril Bur <cyrilbur@gmail.com>2016-09-23 09:18:13 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2016-10-04 12:10:09 +0300
commit65ca668f58a260e144621fd93a413da67635b999 (patch)
treea279400c17b19584e6b9bc3ecbe02d431e2b8ec1 /tools/testing/selftests/powerpc/math/Makefile
parentd11994314b2bfe028bc39be24b44298787925160 (diff)
downloadlinux-65ca668f58a260e144621fd93a413da67635b999.tar.xz
selftests/powerpc: Check for VSX preservation across userspace preemption
Ensure the kernel correctly switches VSX registers correctly. VSX registers are all volatile, and despite the kernel preserving VSX across syscalls, it doesn't have to. Test that during interrupts and timeslices ending the VSX regs remain the same. Signed-off-by: Cyril Bur <cyrilbur@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'tools/testing/selftests/powerpc/math/Makefile')
-rw-r--r--tools/testing/selftests/powerpc/math/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/testing/selftests/powerpc/math/Makefile b/tools/testing/selftests/powerpc/math/Makefile
index 5b88875d5955..a505b66d408a 100644
--- a/tools/testing/selftests/powerpc/math/Makefile
+++ b/tools/testing/selftests/powerpc/math/Makefile
@@ -1,4 +1,4 @@
-TEST_PROGS := fpu_syscall fpu_preempt fpu_signal vmx_syscall vmx_preempt vmx_signal
+TEST_PROGS := fpu_syscall fpu_preempt fpu_signal vmx_syscall vmx_preempt vmx_signal vsx_preempt
all: $(TEST_PROGS)
@@ -13,6 +13,9 @@ vmx_syscall: vmx_asm.S
vmx_preempt: vmx_asm.S
vmx_signal: vmx_asm.S
+vsx_preempt: CFLAGS += -mvsx
+vsx_preempt: vsx_asm.S
+
include ../../lib.mk
clean: