Handle T_HRESULT types in CodeView records
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / altivec-cell-1.c
blob61a2729db13712712e19d9217c891044f69acf32
1 /* { dg-do compile { target powerpc*-*-* } } */
2 /* { dg-options "-maltivec" } */
3 /* { dg-require-effective-target powerpc_altivec } */
5 /* Basic test for the new VMX intrinsics. */
6 #include <altivec.h>
8 int f(vector int a, int b)
10 return vec_extract (a, b);
12 short f1(vector short a, int b)
14 return vec_extract (a, b);
16 vector short f2(vector short a, int b)
18 return vec_insert (b, a, b);
20 vector float f3(vector float a, int b)
22 return vec_insert (b, a, b);
25 float g(void);
27 vector float f4(float b, int t)
29 return vec_promote (g(), t);
31 vector float f5(float b)
33 return vec_splats (g());