aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/powerpc/math/Makefile
diff options
context:
space:
mode:
authorCyril Bur <cyrilbur@gmail.com>2016-02-29 17:53:43 +1100
committerMichael Ellerman <mpe@ellerman.id.au>2016-03-02 23:34:46 +1100
commit01127f1ead4cef75e2b9b309e0ea95418ccd53bd (patch)
tree60275979146fe561ad021c40c62a0f25ac4cfab8 /tools/testing/selftests/powerpc/math/Makefile
parentselftests/powerpc: Remove -flto from common CFLAGS (diff)
downloadlinux-dev-01127f1ead4cef75e2b9b309e0ea95418ccd53bd.tar.xz
linux-dev-01127f1ead4cef75e2b9b309e0ea95418ccd53bd.zip
selftests/powerpc: Test the preservation of FPU and VMX regs across syscall
Test that the non volatile floating point and Altivec registers get correctly preserved across the fork() syscall. fork() works nicely for this purpose, the registers should be the same for both parent and child Signed-off-by: Cyril Bur <cyrilbur@gmail.com> [mpe: Add include guards to basic_asm.h, minor formatting] 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/Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/testing/selftests/powerpc/math/Makefile b/tools/testing/selftests/powerpc/math/Makefile
new file mode 100644
index 000000000000..418bef192eab
--- /dev/null
+++ b/tools/testing/selftests/powerpc/math/Makefile
@@ -0,0 +1,14 @@
+TEST_PROGS := fpu_syscall vmx_syscall
+
+all: $(TEST_PROGS)
+
+$(TEST_PROGS): ../harness.c
+$(TEST_PROGS): CFLAGS += -O2 -g -pthread -m64 -maltivec
+
+fpu_syscall: fpu_asm.S
+vmx_syscall: vmx_asm.S
+
+include ../../lib.mk
+
+clean:
+ rm -f $(TEST_PROGS) *.o