diff options
author | Tom Musta <tommusta@gmail.com> | 2014-02-12 15:23:02 -0600 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2014-03-05 03:06:54 +0100 |
commit | 953f0f5842a8515fd85ae28ebcdc219f8e7b76fe (patch) | |
tree | 50ab6359c2eea383e9154fb0c1a6c37186e31dd8 /target-ppc/helper.h | |
parent | 63be09365a9a4658060e85ce013cc0beaeac25e5 (diff) | |
download | hqemu-953f0f5842a8515fd85ae28ebcdc219f8e7b76fe.zip hqemu-953f0f5842a8515fd85ae28ebcdc219f8e7b76fe.tar.gz |
target-ppc: Altivec 2.07: vmuluw Instruction
This patch adds the Vector Multiply Unsigned Word Modulo (vmuluwm)
instruction.
The existing VARITH_DO macro is re-used to (trivially) instantiate
the helper code.
Since bits 21-31 of any vmuluwm instruction is 137, the instruction
is coded as a dual to vmulouw (bits 21-31 = 136).
Signed-off-by: Tom Musta <tommusta@gmail.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'target-ppc/helper.h')
-rw-r--r-- | target-ppc/helper.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target-ppc/helper.h b/target-ppc/helper.h index ca18447..c20d50e 100644 --- a/target-ppc/helper.h +++ b/target-ppc/helper.h @@ -176,6 +176,7 @@ DEF_HELPER_3(vmulosw, void, avr, avr, avr) DEF_HELPER_3(vmuloub, void, avr, avr, avr) DEF_HELPER_3(vmulouh, void, avr, avr, avr) DEF_HELPER_3(vmulouw, void, avr, avr, avr) +DEF_HELPER_3(vmuluwm, void, avr, avr, avr) DEF_HELPER_3(vsrab, void, avr, avr, avr) DEF_HELPER_3(vsrah, void, avr, avr, avr) DEF_HELPER_3(vsraw, void, avr, avr, avr) |