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