summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/cell_builtin-5.c
blob: cc6adba8050f08fc7fb55dff49cc52709062bc9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* { dg-do compile { target { powerpc*-*-* } } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } { "*" } { "" } } */
/* { dg-require-effective-target powerpc_altivec_ok } */
/* { 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); }