emit_x(p, 31, vr, ra, rb, 71);
}
-/** vector load float: vr = splats(imm) */
-void
-ppc_vload_float(struct ppc_function *p, uint vr, float imm)
-{
- if (imm == 0.0f) {
- ppc_vxor(p, vr, vr, vr);
- }
- else if (imm == 1.0f) {
- /* use 2^0=1 to get 1.0 */
- ppc_vxor(p, vr, vr, vr); /* vr = {0,0,0,0} */
- ppc_vexptefp(p, vr, vr); /* vr = 0^0 */
- }
- else {
- assert(0);
- }
-}
-
/** Pseudo-instruction: vector move */
void
-ppc_vecmove(struct ppc_function *p, uint vD, uint vA)
+ppc_vmove(struct ppc_function *p, uint vD, uint vA)
{
ppc_vor(p, vD, vA, vA);
}
extern void
ppc_lvewx(struct ppc_function *p, uint vR, uint vA, uint vB);
-/** vector load float: vr = splats(imm) */
-extern void
-ppc_vload_float(struct ppc_function *p, uint vr, float imm);
-
/**
/** Pseudo-instruction: vector move */
extern void
-ppc_vecmove(struct ppc_function *p, uint vD, uint vA);
+ppc_vmove(struct ppc_function *p, uint vD, uint vA);
/** Set vector register to {0,0,0,0} */
extern void
case TGSI_EXTSWIZZLE_ONE:
{
int one_vec = gen_one_vec(gen);
- ppc_vecmove(gen->f, dst_vec, one_vec);
+ ppc_vmove(gen->f, dst_vec, one_vec);
}
break;
default: