mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
target/ppc: Fix xs{max, min}[cj]dp to use VSX registers
PPC instruction xsmaxcdp, xsmincdp, xsmaxjdp, and xsminjdp are using vector registers when they should be using VSX ones. This happens because the instructions are using GEN_VSX_HELPER_R3, which adds 32 to the register numbers, effectively making them vector registers. This patch fixes it by changing these instructions to use GEN_VSX_HELPER_X3. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Victor Colombo <victor.colombo@eldorado.org.br> Message-Id: <20211213120958.24443-2-victor.colombo@eldorado.org.br> Signed-off-by: Cédric Le Goater <clg@kaod.org>
This commit is contained in:
parent
6518c0ede9
commit
201fc774e0
3 changed files with 10 additions and 10 deletions
|
@ -403,10 +403,10 @@ DEF_HELPER_4(xscmpoqp, void, env, i32, vsr, vsr)
|
|||
DEF_HELPER_4(xscmpuqp, void, env, i32, vsr, vsr)
|
||||
DEF_HELPER_4(xsmaxdp, void, env, vsr, vsr, vsr)
|
||||
DEF_HELPER_4(xsmindp, void, env, vsr, vsr, vsr)
|
||||
DEF_HELPER_5(xsmaxcdp, void, env, i32, vsr, vsr, vsr)
|
||||
DEF_HELPER_5(xsmincdp, void, env, i32, vsr, vsr, vsr)
|
||||
DEF_HELPER_5(xsmaxjdp, void, env, i32, vsr, vsr, vsr)
|
||||
DEF_HELPER_5(xsminjdp, void, env, i32, vsr, vsr, vsr)
|
||||
DEF_HELPER_4(xsmaxcdp, void, env, vsr, vsr, vsr)
|
||||
DEF_HELPER_4(xsmincdp, void, env, vsr, vsr, vsr)
|
||||
DEF_HELPER_4(xsmaxjdp, void, env, vsr, vsr, vsr)
|
||||
DEF_HELPER_4(xsminjdp, void, env, vsr, vsr, vsr)
|
||||
DEF_HELPER_3(xscvdphp, void, env, vsr, vsr)
|
||||
DEF_HELPER_4(xscvdpqp, void, env, i32, vsr, vsr)
|
||||
DEF_HELPER_3(xscvdpsp, void, env, vsr, vsr)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue