1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-skip-if "" { powerpc*-*-darwin* } } */
3 /* { dg-require-effective-target powerpc_altivec_ok } */
4 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=cell" } } */
5 /* { dg-options "-O2 -maltivec -mcpu=cell" } */
6 /* { dg-final { scan-assembler-times "stvlx" 19 } } */
7
8 #include <altivec.h>
9
10 typedef __vector signed char vsc;
11 typedef __vector signed short vss;
12 typedef __vector signed int vsi;
13 typedef __vector unsigned char vuc;
14 typedef __vector unsigned short vus;
15 typedef __vector unsigned int vui;
16 typedef __vector bool char vbc;
17 typedef __vector bool short vbs;
18 typedef __vector bool int vbi;
19 typedef __vector float vsf;
20 typedef __vector pixel vp;
21 typedef signed char sc;
22 typedef signed short ss;
23 typedef signed int si;
24 typedef signed long sl;
25 typedef unsigned char uc;
26 typedef unsigned short us;
27 typedef unsigned int ui;
28 typedef unsigned long ul;
29 typedef float sf;
30
sc1(vsc v,long a,void * p)31 void sc1(vsc v, long a, void *p) { __builtin_altivec_stvlx (v,a,p); }
slx01(vsf v,long a,vsf * p)32 void slx01(vsf v, long a, vsf *p) { __builtin_vec_stvlx (v,a,p); }
slx02(vsf v,long a,sf * p)33 void slx02(vsf v, long a, sf *p) { __builtin_vec_stvlx (v,a,p); }
slx03(vbi v,long a,vbi * p)34 void slx03(vbi v, long a, vbi *p) { __builtin_vec_stvlx (v,a,p); }
slx04(vsi v,long a,vsi * p)35 void slx04(vsi v, long a, vsi *p) { __builtin_vec_stvlx (v,a,p); }
slx05(vsi v,long a,si * p)36 void slx05(vsi v, long a, si *p) { __builtin_vec_stvlx (v,a,p); }
slx06(vui v,long a,vui * p)37 void slx06(vui v, long a, vui *p) { __builtin_vec_stvlx (v,a,p); }
slx07(vui v,long a,ui * p)38 void slx07(vui v, long a, ui *p) { __builtin_vec_stvlx (v,a,p); }
slx08(vbs v,long a,vbs * p)39 void slx08(vbs v, long a, vbs *p) { __builtin_vec_stvlx (v,a,p); }
slx09(vp v,long a,vp * p)40 void slx09(vp v, long a, vp *p) { __builtin_vec_stvlx (v,a,p); }
slx10(vss v,long a,vss * p)41 void slx10(vss v, long a, vss *p) { __builtin_vec_stvlx (v,a,p); }
slx11(vss v,long a,ss * p)42 void slx11(vss v, long a, ss *p) { __builtin_vec_stvlx (v,a,p); }
slx12(vus v,long a,vus * p)43 void slx12(vus v, long a, vus *p) { __builtin_vec_stvlx (v,a,p); }
slx13(vus v,long a,us * p)44 void slx13(vus v, long a, us *p) { __builtin_vec_stvlx (v,a,p); }
slx14(vbc v,long a,vbc * p)45 void slx14(vbc v, long a, vbc *p) { __builtin_vec_stvlx (v,a,p); }
slx15(vsc v,long a,vsc * p)46 void slx15(vsc v, long a, vsc *p) { __builtin_vec_stvlx (v,a,p); }
slx16(vsc v,long a,sc * p)47 void slx16(vsc v, long a, sc *p) { __builtin_vec_stvlx (v,a,p); }
slx17(vuc v,long a,vuc * p)48 void slx17(vuc v, long a, vuc *p) { __builtin_vec_stvlx (v,a,p); }
slx18(vuc v,long a,uc * p)49 void slx18(vuc v, long a, uc *p) { __builtin_vec_stvlx (v,a,p); }
50