URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc3/] [gcc/] [testsuite/] [gcc.dg/] [vmx/] [pr27842.c] - Rev 298
Go to most recent revision | Compare with Previous | Blame | View Log
#include <altivec.h> extern void abort (void); extern int memcmp (const void *, const void *, __SIZE_TYPE__); void test (vector float *p, int n) { int i; for (i = 0; i < n; i++) p[i] = vec_abs (p[i]); } int main (void) { vector float p = (vector float){ 0.5, 0.5, 0.5, 0.5 }; vector float q = p; test (&p, 1); if (memcmp (&p, &q, sizeof (p))) abort (); return 0; }
Go to most recent revision | Compare with Previous | Blame | View Log