OSDN Git Service

selftests/powerpc: Add prefixed loads/stores to alignment_handler test
authorJordan Niethe <jniethe5@gmail.com>
Wed, 20 May 2020 02:11:03 +0000 (12:11 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 22 Jun 2020 04:18:45 +0000 (14:18 +1000)
commit620a6473df36f8dc6f70bc85ff3465b2e21d1254
tree480e60723b5d887102cd89b84aaa91f2d1ae80b1
parent01bd294642841998c76d9e6929597dcb7da9466a
selftests/powerpc: Add prefixed loads/stores to alignment_handler test

Extend the alignment handler selftest to exercise prefixed load store
instructions. Add tests for prefixed VSX, floating point and integer
instructions.

Skip prefix tests if ISA version does not support prefixed instructions.

Signed-off-by: Jordan Niethe <jniethe5@gmail.com>
Tested-by: Alistair Popple <alistair@popple.id.au>
[mpe: Fixup PPC_FEATURE2_ARCH_3_1 naming as noted by Alistair]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200520021103.19798-2-jniethe5@gmail.com
tools/testing/selftests/powerpc/alignment/alignment_handler.c
tools/testing/selftests/powerpc/include/instructions.h
tools/testing/selftests/powerpc/include/utils.h