void foo(void) { const unsigned char *buf; vector pixel vp = { 3, 4, 5, 6 }; vector bool int vbi = { 1, 0, 1, 0 }; vector bool short vbs = { 1, 0, 1, 0, 1, 0, 1, 0 }; vector bool char vbc = { 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0 }; vector signed char vsc; int a = 3; vec_dst(buf, a, 1); vec_dstst(buf, a, 2); vec_dststt(buf, a, 3); vec_dststt(buf, a, 2); vp = vec_sld(vp, vp, 5); vbc = vec_splat(vbc, 7); vbs = vec_splat(vbs, 12); vp = vec_splat(vp, 17); vbi = vec_splat(vbi, 31); }
void f35() { vec_dststt(var_long_ptr[0], var_int[1], 0); vec_dststt(var_long_ptr[0], var_int[1], 1); vec_dststt(var_long_ptr[0], var_int[1], 2); vec_dststt(var_long_ptr[0], var_int[1], 3); vec_dststt(var_unsigned_long_ptr[0], var_int[1], 0); vec_dststt(var_unsigned_long_ptr[0], var_int[1], 1); vec_dststt(var_unsigned_long_ptr[0], var_int[1], 2); vec_dststt(var_unsigned_long_ptr[0], var_int[1], 3); vec_dstt(var_long_ptr[0], var_int[1], 0); vec_dstt(var_long_ptr[0], var_int[1], 1); vec_dstt(var_long_ptr[0], var_int[1], 2); vec_dstt(var_long_ptr[0], var_int[1], 3); }
void b() { z = vec_add (x, y); /* Make sure the predicates accept correct argument types. */ int1 = vec_all_in (f, g); int1 = vec_all_ge (f, g); int1 = vec_all_eq (c, d); int1 = vec_all_ne (s, t); int1 = vec_any_eq (i, j); int1 = vec_any_ge (f, g); int1 = vec_all_ngt (f, g); int1 = vec_any_ge (c, d); int1 = vec_any_ge (s, t); int1 = vec_any_ge (i, j); int1 = vec_any_ge (c, d); int1 = vec_any_ge (s, t); int1 = vec_any_ge (i, j); vec_mtvscr (i); vec_dssall (); s = (vector signed short) vec_mfvscr (); vec_dss (3); vec_dst (pi, int1 + int2, 3); vec_dstst (pi, int1 + int2, 3); vec_dststt (pi, int1 + int2, 3); vec_dstt (pi, int1 + int2, 3); uc = (vector unsigned char) vec_lvsl (int1 + 69, (signed int *) pi); uc = (vector unsigned char) vec_lvsr (int1 + 69, (signed int *) pi); c = vec_lde (int1, (signed char *) pi); s = vec_lde (int1, (signed short *) pi); i = vec_lde (int1, (signed int *) pi); i = vec_ldl (int1, pi); i = vec_ld (int1, pi); vec_st (i, int2, pi); vec_ste (c, int2, (signed char *) pi); vec_ste (s, int2, (signed short *) pi); vec_ste (i, int2, (signed int *) pi); vec_stl (i, int2, pi); }