summaryrefslogtreecommitdiffstats
path: root/target/ppc/int_helper.c
diff options
context:
space:
mode:
authorRichard Henderson2020-04-20 06:54:56 +0200
committerRichard Henderson2020-06-02 17:42:37 +0200
commit3e114acc9136dd7300324673a6e589ecc51f28cc (patch)
tree159ca7f822dbd9ef58c65b755bdee2acc7e2a63a /target/ppc/int_helper.c
parenttcg/ppc: Implement INDEX_op_rot[lr]v_vec (diff)
downloadqemu-3e114acc9136dd7300324673a6e589ecc51f28cc.tar.gz
qemu-3e114acc9136dd7300324673a6e589ecc51f28cc.tar.xz
qemu-3e114acc9136dd7300324673a6e589ecc51f28cc.zip
target/ppc: Use tcg_gen_gvec_rotlv
Acked-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/ppc/int_helper.c')
-rw-r--r--target/ppc/int_helper.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/target/ppc/int_helper.c b/target/ppc/int_helper.c
index be53cd6f68..d8bd3c234a 100644
--- a/target/ppc/int_helper.c
+++ b/target/ppc/int_helper.c
@@ -1348,23 +1348,6 @@ VRFI(p, float_round_up)
VRFI(z, float_round_to_zero)
#undef VRFI
-#define VROTATE(suffix, element, mask) \
- void helper_vrl##suffix(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) \
- { \
- int i; \
- \
- for (i = 0; i < ARRAY_SIZE(r->element); i++) { \
- unsigned int shift = b->element[i] & mask; \
- r->element[i] = (a->element[i] << shift) | \
- (a->element[i] >> (sizeof(a->element[0]) * 8 - shift)); \
- } \
- }
-VROTATE(b, u8, 0x7)
-VROTATE(h, u16, 0xF)
-VROTATE(w, u32, 0x1F)
-VROTATE(d, u64, 0x3F)
-#undef VROTATE
-
void helper_vrsqrtefp(CPUPPCState *env, ppc_avr_t *r, ppc_avr_t *b)
{
int i;