/* { dg-do compile { target { powerpc*-*-* } } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } { "*" } { "" } } */
/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=cell" } } */
/* { dg-options "-O2 -maltivec -mcpu=cell" } */
/* { dg-final { scan-assembler-times "stvlx" 19 } } */

#include <altivec.h>

typedef __vector signed char vsc;
typedef __vector signed short vss;
typedef __vector signed int vsi;
typedef __vector unsigned char vuc;
typedef __vector unsigned short vus;
typedef __vector unsigned int vui;
typedef __vector bool char vbc;
typedef __vector bool short vbs;
typedef __vector bool int vbi;
typedef __vector float vsf;
typedef __vector pixel vp;
typedef signed char sc;
typedef signed short ss;
typedef signed int si;
typedef signed long sl;
typedef unsigned char uc;
typedef unsigned short us;
typedef unsigned int ui;
typedef unsigned long ul;
typedef float sf;

void sc1(vsc v, long a, void *p)    { __builtin_altivec_stvlx (v,a,p); }
void slx01(vsf v, long a, vsf *p)   { __builtin_vec_stvlx (v,a,p); }
void slx02(vsf v, long a, sf *p)    { __builtin_vec_stvlx (v,a,p); }
void slx03(vbi v, long a, vbi *p)   { __builtin_vec_stvlx (v,a,p); }
void slx04(vsi v, long a, vsi *p)   { __builtin_vec_stvlx (v,a,p); }
void slx05(vsi v, long a, si *p)    { __builtin_vec_stvlx (v,a,p); }
void slx06(vui v, long a, vui *p)   { __builtin_vec_stvlx (v,a,p); }
void slx07(vui v, long a, ui *p)    { __builtin_vec_stvlx (v,a,p); }
void slx08(vbs v, long a, vbs *p)   { __builtin_vec_stvlx (v,a,p); }
void slx09(vp v, long a, vp *p)     { __builtin_vec_stvlx (v,a,p); }
void slx10(vss v, long a, vss *p)   { __builtin_vec_stvlx (v,a,p); }
void slx11(vss v, long a, ss *p)    { __builtin_vec_stvlx (v,a,p); }
void slx12(vus v, long a, vus *p)   { __builtin_vec_stvlx (v,a,p); }
void slx13(vus v, long a, us *p)    { __builtin_vec_stvlx (v,a,p); }
void slx14(vbc v, long a, vbc *p)   { __builtin_vec_stvlx (v,a,p); }
void slx15(vsc v, long a, vsc *p)   { __builtin_vec_stvlx (v,a,p); }
void slx16(vsc v, long a, sc *p)    { __builtin_vec_stvlx (v,a,p); }
void slx17(vuc v, long a, vuc *p)   { __builtin_vec_stvlx (v,a,p); }
void slx18(vuc v, long a, uc *p)    { __builtin_vec_stvlx (v,a,p); }
