Revision c026766b target-ppc/op_helper.c

b/target-ppc/op_helper.c
2570 2570
#undef SPLAT_ELEMENT
2571 2571
#undef _SPLAT_MASKED
2572 2572

  
2573
#define VSPLTI(suffix, element, splat_type)                     \
2574
    void helper_vspltis##suffix (ppc_avr_t *r, uint32_t splat)  \
2575
    {                                                           \
2576
        splat_type x = (int8_t)(splat << 3) >> 3;               \
2577
        int i;                                                  \
2578
        for (i = 0; i < ARRAY_SIZE(r->element); i++) {          \
2579
            r->element[i] = x;                                  \
2580
        }                                                       \
2581
    }
2582
VSPLTI(b, s8, int8_t)
2583
VSPLTI(h, s16, int16_t)
2584
VSPLTI(w, s32, int32_t)
2585
#undef VSPLTI
2586

  
2573 2587
#define VSR(suffix, element)                                            \
2574 2588
    void helper_vsr##suffix (ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b)  \
2575 2589
    {                                                                   \

Also available in: Unified diff