view gcc/testsuite/g++.dg/ext/pr70290.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/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.*" } */