URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gcc.dg/] [vmx/] [7d-01.c] - Rev 384
Compare with Previous | Blame | View Log
/* { dg-do compile } */ #include <altivec.h> extern vector unsigned char a[]; vector unsigned char f(vector unsigned char *p, int i, int b) { if (b) return p[i]; return vec_ld(i*16,p); } vector unsigned char g(int i, int b) { if (b) return a[i]; return vec_ld(i*16,a); }