OSDN Git Service

2005-10-01 Paul Thomas <pault@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / altivec-pr22085.c
1 /* { dg-do compile { target powerpc*-*-* } } */
2 /* { dg-options "-maltivec -fpreprocessed" } */
3
4 /* Program to test AltiVec with -fpreprocessed.  */
5 int foo(__attribute__((altivec(vector__))) float x,
6         __attribute__((altivec(vector__))) float y)
7 {
8   if (__builtin_vec_vcmpeq_p (2, (x), (y)))
9     return 3245;
10   else
11     return 12;
12 }