summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/altivec-pr22085.c
blob: 5f0b5df54015e9ee1d66d975f210cce80d2c0b63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-options "-maltivec -fpreprocessed" } */

/* Program to test AltiVec with -fpreprocessed.  */
int foo(__attribute__((altivec(vector__))) float x,
        __attribute__((altivec(vector__))) float y)
{
  if (__builtin_vec_vcmpeq_p (2, (x), (y)))
    return 3245;
  else
    return 12;
}