mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
target-ppc: VSX Stage 4: Add xsaddsp and xssubsp
This patch adds the VSX Scalar Add Single-Precision (xsaddsp) and VSX Scalar Subtract Single-Precision (xssubsp) instructions. The existing VSX_ADD_SUB macro is modified to support the rounding of the (intermediate) result to single-precision. Signed-off-by: Tom Musta <tommusta@gmail.com> Reviewed-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
e16a626b82
commit
3fd0aadfc1
3 changed files with 22 additions and 7 deletions
|
@ -286,6 +286,9 @@ DEF_HELPER_2(xsrdpim, void, env, i32)
|
|||
DEF_HELPER_2(xsrdpip, void, env, i32)
|
||||
DEF_HELPER_2(xsrdpiz, void, env, i32)
|
||||
|
||||
DEF_HELPER_2(xsaddsp, void, env, i32)
|
||||
DEF_HELPER_2(xssubsp, void, env, i32)
|
||||
|
||||
DEF_HELPER_2(xvadddp, void, env, i32)
|
||||
DEF_HELPER_2(xvsubdp, void, env, i32)
|
||||
DEF_HELPER_2(xvmuldp, void, env, i32)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue