diff options
author | Tom Musta <tommusta@gmail.com> | 2014-02-12 15:23:03 -0600 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2014-03-05 03:06:55 +0100 |
commit | f293f04ab5301f688ce7c9fe3006a787611c2485 (patch) | |
tree | 8e6e2fbf119f559e53f6686ad09d565a0408739c /target-ppc/translate.c | |
parent | 953f0f5842a8515fd85ae28ebcdc219f8e7b76fe (diff) |
target-ppc: Altivec 2.07: Add Vector Count Leading Zeroes
This patch adds the Vector Count Leading Zeroes instructions introduced
in Power ISA Version 2.07 - vclzb, vclzh, vclzw and vclzd.
Signed-off-by: Tom Musta <tommusta@gmail.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'target-ppc/translate.c')
-rw-r--r-- | target-ppc/translate.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/target-ppc/translate.c b/target-ppc/translate.c index ca253e0719..a1b85b58ff 100644 --- a/target-ppc/translate.c +++ b/target-ppc/translate.c @@ -7283,6 +7283,10 @@ GEN_VAFORM_PAIRED(vmsumshm, vmsumshs, 20) GEN_VAFORM_PAIRED(vsel, vperm, 21) GEN_VAFORM_PAIRED(vmaddfp, vnmsubfp, 23) +GEN_VXFORM_NOA(vclzb, 1, 28) +GEN_VXFORM_NOA(vclzh, 1, 29) +GEN_VXFORM_NOA(vclzw, 1, 30) +GEN_VXFORM_NOA(vclzd, 1, 31) /*** VSX extension ***/ static inline TCGv_i64 cpu_vsrh(int n) @@ -10504,6 +10508,11 @@ GEN_VAFORM_PAIRED(vmsumshm, vmsumshs, 20), GEN_VAFORM_PAIRED(vsel, vperm, 21), GEN_VAFORM_PAIRED(vmaddfp, vnmsubfp, 23), +GEN_VXFORM_207(vclzb, 1, 28), +GEN_VXFORM_207(vclzh, 1, 29), +GEN_VXFORM_207(vclzw, 1, 30), +GEN_VXFORM_207(vclzd, 1, 31), + GEN_HANDLER_E(lxsdx, 0x1F, 0x0C, 0x12, 0, PPC_NONE, PPC2_VSX), GEN_HANDLER_E(lxsiwax, 0x1F, 0x0C, 0x02, 0, PPC_NONE, PPC2_VSX207), GEN_HANDLER_E(lxsiwzx, 0x1F, 0x0C, 0x00, 0, PPC_NONE, PPC2_VSX207), |