diff options
author | Matheus Ferst <matheus.ferst@eldorado.org.br> | 2021-11-04 09:37:02 -0300 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2021-11-09 10:32:52 +1100 |
commit | b422c2cb52c7c94d34dfc78d439aa2e653af9337 (patch) | |
tree | 63df4d6f9743a1a56ee1e603a7c0688a8ee7386a /target/ppc/int_helper.c | |
parent | 2c9f79584107313e880995ffd2b36f6d28b7bc2e (diff) | |
download | qemu-b422c2cb52c7c94d34dfc78d439aa2e653af9337.zip qemu-b422c2cb52c7c94d34dfc78d439aa2e653af9337.tar.gz qemu-b422c2cb52c7c94d34dfc78d439aa2e653af9337.tar.bz2 |
target/ppc: Move vinsertb/vinserth/vinsertw/vinsertd to decodetree
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Matheus Ferst <matheus.ferst@eldorado.org.br>
Message-Id: <20211104123719.323713-9-matheus.ferst@eldorado.org.br>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'target/ppc/int_helper.c')
-rw-r--r-- | target/ppc/int_helper.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/target/ppc/int_helper.c b/target/ppc/int_helper.c index 80b7f88..6f9479f 100644 --- a/target/ppc/int_helper.c +++ b/target/ppc/int_helper.c @@ -1613,27 +1613,6 @@ void helper_vslo(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) } #if defined(HOST_WORDS_BIGENDIAN) -#define VINSERT(suffix, element) \ - void helper_vinsert##suffix(ppc_avr_t *r, ppc_avr_t *b, uint32_t index) \ - { \ - memmove(&r->u8[index], &b->u8[8 - sizeof(r->element[0])], \ - sizeof(r->element[0])); \ - } -#else -#define VINSERT(suffix, element) \ - void helper_vinsert##suffix(ppc_avr_t *r, ppc_avr_t *b, uint32_t index) \ - { \ - uint32_t d = (16 - index) - sizeof(r->element[0]); \ - memmove(&r->u8[d], &b->u8[8], sizeof(r->element[0])); \ - } -#endif -VINSERT(b, u8) -VINSERT(h, u16) -VINSERT(w, u32) -VINSERT(d, u64) -#undef VINSERT - -#if defined(HOST_WORDS_BIGENDIAN) #define ELEM_ADDR(VEC, IDX, SIZE) (&(VEC)->u8[IDX]) #else #define ELEM_ADDR(VEC, IDX, SIZE) (&(VEC)->u8[15 - (IDX)] - (SIZE) + 1) |