Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/vect/pr42604.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* PR debug/42604 */ /* { dg-do compile } */ /* { dg-additional-options "-O3 -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; } }