diff options
author | Matheus Ferst <matheus.ferst@eldorado.org.br> | 2022-06-06 12:00:32 -0300 |
---|---|---|
committer | Daniel Henrique Barboza <danielhb413@gmail.com> | 2022-07-06 10:22:37 -0300 |
commit | 7ca042868744a5efca902473d600d205e9e104b2 (patch) | |
tree | 8d0c1cf08b7003e0b29e9d6c2748ff604ce2ffa0 /target/ppc/int_helper.c | |
parent | e82ca8acdd5021ccd7c0c0fe7e25fae7e3909b4b (diff) | |
download | qemu-7ca042868744a5efca902473d600d205e9e104b2.zip qemu-7ca042868744a5efca902473d600d205e9e104b2.tar.gz qemu-7ca042868744a5efca902473d600d205e9e104b2.tar.bz2 |
target/ppc: use int128.h methods in vadduqm
And also move the insn to decodetree.
Signed-off-by: Matheus Ferst <matheus.ferst@eldorado.org.br>
Reviewed-by: VĂctor Colombo <victor.colombo@eldorado.org.br>
Message-Id: <20220606150037.338931-3-matheus.ferst@eldorado.org.br>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Diffstat (limited to 'target/ppc/int_helper.c')
-rw-r--r-- | target/ppc/int_helper.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/target/ppc/int_helper.c b/target/ppc/int_helper.c index 1476e51..7de69f0 100644 --- a/target/ppc/int_helper.c +++ b/target/ppc/int_helper.c @@ -2224,13 +2224,9 @@ static int avr_qw_addc(ppc_avr_t *t, ppc_avr_t a, ppc_avr_t b) #endif -void helper_vadduqm(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) +void helper_VADDUQM(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) { -#ifdef CONFIG_INT128 - r->u128 = a->u128 + b->u128; -#else - avr_qw_add(r, *a, *b); -#endif + r->s128 = int128_add(a->s128, b->s128); } void helper_vaddeuqm(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, ppc_avr_t *c) |