| 1 |
/* PR target/70290 */ |
| 2 |
/* { dg-do compile } */ |
| 3 |
/* { dg-options "-Wno-psabi -w" } */ |
| 4 |
/* { dg-additional-options "-mavx512vl" { target { i?86-*-* x86_64-*-* } } } */ |
| 5 |
|
| 6 |
typedef int vec __attribute__((vector_size(32))); |
| 7 |
|
| 8 |
vec |
| 9 |
test1 (vec x, vec y) |
| 10 |
{ |
| 11 |
return (x < y) ? 1 : 0; |
| 12 |
} |
| 13 |
|
| 14 |
vec |
| 15 |
test2 (vec x, vec y) |
| 16 |
{ |
| 17 |
vec zero = { }; |
| 18 |
vec one = zero + 1; |
| 19 |
return (x < y) ? one : zero; |
| 20 |
} |
| 21 |
|
| 22 |
/* Ignore a warning that is irrelevant to the purpose of this test. */ |
| 23 |
/* { dg-prune-output ".*GCC vector passed by reference.*" } */ |
| 24 |
|