Changes requirement for "vsubsbs" instruction
PATCH 1/1 Changes requirement for "vsubsbs" instruction
From: "Paul A. Clarke" <[email protected]>
Changes requirement for "vsubsbs" instruction, which has been supported since ISA 2.03. (Please see section 5.9.1.2 of ISA 2.03)
Reported-by Paul A. Clarke <[email protected]>
Signed-off-by Paul A. Clarke <[email protected]>
Signed-off-by Leonardo Bras <[email protected]>
--- target/ppc/translate/vmx-ops.inc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
target/ppc/translate/vmx-ops.inc.c +1 -1
@@ -143,7 +143,7 @@ GEN_VXFORM(vaddsws, 0, 14),GEN_VXFORM_DUAL (vsububs, bcdadd,0 ,24 ,PPC_ALTIVEC ,PPC_NONE ),GEN_VXFORM_DUAL (vsubuhs, bcdsub,0 ,25 ,PPC_ALTIVEC ,PPC_NONE ),GEN_VXFORM (vsubuws,0 ,26 ), -GEN_VXFORM_DUAL (vsubsbs, bcdtrunc,0 ,28 ,PPC_NONE ,PPC2_ISA300 ), +GEN_VXFORM_DUAL (vsubsbs, bcdtrunc,0 ,28 ,PPC_ALTIVEC ,PPC2_ISA300 ),GEN_VXFORM (vsubshs,0 ,29 ),GEN_VXFORM_DUAL (vsubsws, xpnd04_2,0 ,30 ,PPC_ALTIVEC ,PPC_NONE ), GEN_VXFORM_207(vadduqm, 0, 4),
Signature · 1 line
2.19.2
David Gibson
AppliedQuoted 8 lines · Leonardo Bras
From: "Paul A. Clarke" <[email protected]>
Changes requirement for "vsubsbs" instruction, which has been supported since ISA 2.03. (Please see section 5.9.1.2 of ISA 2.03)
Reported-by Paul A. Clarke <[email protected]>Signed-off-by Paul A. Clarke <[email protected]>Signed-off-by Leonardo Bras <[email protected]>
Those instruction generating macros are super-confusing, but I think this is right. vsubsbs has been there for ages with altivec, bcdtrunc is new in ISA 3.0.
Applied to ppc-for-4.0.
Quoted 17 lines
--- target/ppc/translate/vmx-ops.inc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)target/ppc/translate/vmx-ops.inc.c +1
-1@@ -143,7 +143,7 @@ GEN_VXFORM(vaddsws, 0, 14),GEN_VXFORM_DUAL (vsububs, bcdadd,0 ,24 ,PPC_ALTIVEC ,PPC_NONE ),GEN_VXFORM_DUAL (vsubuhs, bcdsub,0 ,25 ,PPC_ALTIVEC ,PPC_NONE ),GEN_VXFORM (vsubuws,0 ,26 ), -GEN_VXFORM_DUAL (vsubsbs, bcdtrunc,0 ,28 ,PPC_NONE ,PPC2_ISA300 ), +GEN_VXFORM_DUAL (vsubsbs, bcdtrunc,0 ,28 ,PPC_ALTIVEC ,PPC2_ISA300 ),GEN_VXFORM (vsubshs,0 ,29 ),GEN_VXFORM_DUAL (vsubsws, xpnd04_2,0 ,30 ,PPC_ALTIVEC ,PPC_NONE ), GEN_VXFORM_207(vadduqm, 0, 4),
Signature · 4 lines
David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson