IVOPT performance tuning patch. The main problem is a variant of maximal weight
[official-gcc.git] / gcc / testsuite / gcc.dg / vmx / 7d-01.c
blobdac5151add111fc6c8c65685dd48e56cbf1fda70
1 /* { dg-do compile } */
2 #include <altivec.h>
3 extern vector unsigned char a[];
5 vector unsigned char
6 f(vector unsigned char *p, int i, int b)
8 if (b)
9 return p[i];
10 return vec_ld(i*16,p);
13 vector unsigned char
14 g(int i, int b)
16 if (b)
17 return a[i];
18 return vec_ld(i*16,a);