URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [vect/] [pr42604.c] - Rev 298
Compare with Previous | Blame | View Log
/* PR debug/42604 */ /* { dg-do compile } */ /* { dg-options "-O3 -ftree-vectorize -g -ffast-math" } */ unsigned *d; unsigned short e; int f; float h[3][4]; void test (unsigned short *b) { int a, c, i; float g[3]; unsigned j[32] = { 10, 0x63707274 }; for (i = 0; i < (int) j[0]; i++) { j[i * 3 + 2] = d[0]; d[0] += (j[i * 3 + 3] + 3) & -4; } for (a = 0; a < e; a++) { g[0] = g[1] = g[2] = 0; for (c = 0; c < f; c++) { g[0] += h[0][c] * b[c]; g[1] += h[1][c] * b[c]; } for (c = 0; c < 3; c++) b[c] = 0 > ((int) g[c] < 65535 ? ((int) g[c]) : 65535) ? 0 : ((int) g[c]) < 65535 ? (int) g[c] : 65535; } } /* { dg-final { cleanup-tree-dump "vect" } } */