blob: f5242271d17aafe35d4200b7b356695e875b5ed8 [file] [log] [blame]
/* PR target/70290 */
/* { dg-do compile } */
/* { dg-options "-Wno-psabi -w" } */
/* { dg-additional-options "-mavx512vl" { target { i?86-*-* x86_64-*-* } } } */
typedef int vec __attribute__((vector_size(32)));
vec
test1 (vec x, vec y)
{
return (x < y) ? 1 : 0;
}
vec
test2 (vec x, vec y)
{
vec zero = { };
vec one = zero + 1;
return (x < y) ? one : zero;
}
/* Ignore a warning that is irrelevant to the purpose of this test. */
/* { dg-prune-output ".*GCC vector passed by reference.*" } */