selftests/powerpc: Test the preservation of FPU and VMX regs across syscall
authorCyril Bur <cyrilbur@gmail.com>
Mon, 29 Feb 2016 06:53:43 +0000 (17:53 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 2 Mar 2016 12:34:46 +0000 (23:34 +1100)
commit01127f1ead4cef75e2b9b309e0ea95418ccd53bd
tree60275979146fe561ad021c40c62a0f25ac4cfab8
parenta4cf0a2e1d3b98cac5fd5ba92803722255374e9e
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>
tools/testing/selftests/powerpc/Makefile
tools/testing/selftests/powerpc/basic_asm.h [new file with mode: 0644]
tools/testing/selftests/powerpc/math/.gitignore [new file with mode: 0644]
tools/testing/selftests/powerpc/math/Makefile [new file with mode: 0644]
tools/testing/selftests/powerpc/math/fpu_asm.S [new file with mode: 0644]
tools/testing/selftests/powerpc/math/fpu_syscall.c [new file with mode: 0644]
tools/testing/selftests/powerpc/math/vmx_asm.S [new file with mode: 0644]
tools/testing/selftests/powerpc/math/vmx_syscall.c [new file with mode: 0644]