]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/sstep: Add tests for Prefixed Add Immediate
authorJordan Niethe <jniethe5@gmail.com>
Mon, 25 May 2020 02:59:23 +0000 (12:59 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 23 Jul 2020 07:25:21 +0000 (17:25 +1000)
commitc6b6efd4f41b7f92f12e8353cd368ea32fa553d8
treebf7b145d23e070cb650c7b17201b25949d6968ed
parent24465318034e98267dd06f17ef3ecbd087079c76
powerpc/sstep: Add tests for Prefixed Add Immediate

Use the existing support for testing compute type instructions to test
Prefixed Add Immediate (paddi). The R bit of the paddi instruction
controls whether current instruction address is used. Add test cases
for when R=1 and for R=0. paddi has a 34 bit immediate field formed by
concatenating si0 and si1. Add tests for the extreme values of this
field.

Skip the paddi tests if ISA v3.1 is unsupported.

Some of these test cases were added by Balamuruhan S.

Signed-off-by: Jordan Niethe <jniethe5@gmail.com>
[mpe: Fix conflicts with ppc-opcode.h changes, squash in .balign]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200525025923.19843-5-jniethe5@gmail.com
arch/powerpc/lib/test_emulate_step.c
arch/powerpc/lib/test_emulate_step_exec_instr.S