Revision c026766b target-ppc/translate.c

b/target-ppc/translate.c
6392 6392
GEN_VXRFORM(vcmpgtuh, 3, 9)
6393 6393
GEN_VXRFORM(vcmpgtuw, 3, 10)
6394 6394

  
6395
#define GEN_VXFORM_SIMM(name, opc2, opc3)                               \
6396
    GEN_HANDLER(name, 0x04, opc2, opc3, 0x00000000, PPC_ALTIVEC)        \
6397
    {                                                                   \
6398
        TCGv_ptr rd;                                                    \
6399
        TCGv_i32 simm;                                                  \
6400
        if (unlikely(!ctx->altivec_enabled)) {                          \
6401
            gen_exception(ctx, POWERPC_EXCP_VPU);                       \
6402
            return;                                                     \
6403
        }                                                               \
6404
        simm = tcg_const_i32(SIMM5(ctx->opcode));                       \
6405
        rd = gen_avr_ptr(rD(ctx->opcode));                              \
6406
        gen_helper_##name (rd, simm);                                   \
6407
        tcg_temp_free_i32(simm);                                        \
6408
        tcg_temp_free_ptr(rd);                                          \
6409
    }
6410

  
6411
GEN_VXFORM_SIMM(vspltisb, 6, 12);
6412
GEN_VXFORM_SIMM(vspltish, 6, 13);
6413
GEN_VXFORM_SIMM(vspltisw, 6, 14);
6414

  
6395 6415
#define GEN_VXFORM_NOA(name, opc2, opc3)                                \
6396 6416
    GEN_HANDLER(name, 0x04, opc2, opc3, 0x001f0000, PPC_ALTIVEC)        \
6397 6417
    {                                                                   \

Also available in: Unified diff