Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/c-c++-common/pr63764-2.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 target/63764 */ /* { dg-do compile } */ #define A __attribute__((vector_size (4 * sizeof (float)))) typedef float V A; float fn1 (V *x) { V a = *x; return ((V) a)[0]; } float fn2 (V *x) { float A a = *x; return ((float A) a)[0]; } void fn3 (V *x) { V a = *x; a[0] = 0; *x = a; } void fn4 (V *x) { float A a = *x; a[0] = 0; *x = a; }