| 1 |
/* { dg-require-effective-target vect_int } */ |
| 2 |
/* { dg-additional-options "-Wno-psabi" } */ |
| 3 |
|
| 4 |
typedef __INT32_TYPE__ int32_t; |
| 5 |
typedef int32_t vnx4si __attribute__((vector_size (32))); |
| 6 |
|
| 7 |
extern void check_for_uninit (vnx4si v); |
| 8 |
|
| 9 |
void test_1a (vnx4si *out, int a, int b) |
| 10 |
{ |
| 11 |
vnx4si v = (vnx4si) { 1, 2, 3, 4, 5, 6, a, b }; |
| 12 |
check_for_uninit (v); |
| 13 |
} |
| 14 |
|
| 15 |
void test_1b (vnx4si *out, int a, int b) |
| 16 |
{ |
| 17 |
check_for_uninit ((vnx4si) { 1, 2, 3, 4, 5, 6, a, b }); |
| 18 |
} |
| 19 |
|
| 20 |
static __attribute__((noipa)) void |
| 21 |
called_by_test_2 (vnx4si *out, int a, int b) |
| 22 |
{ |
| 23 |
*out = (vnx4si) { 1, 2, 3, 4, 5, 6, a, b }; |
| 24 |
} |
| 25 |
|
| 26 |
void test_2 (vnx4si *out, int a, int b) |
| 27 |
{ |
| 28 |
vnx4si v; |
| 29 |
called_by_test_2 (&v, a, b); |
| 30 |
check_for_uninit (v); |
| 31 |
} |