aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.apple/apple-altivec-11.c
blob: 6224923c1be753b91615d3138a3621bef9b3933d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* APPLE LOCAL file AltiVec */
/* { dg-do run { target powerpc*-*-* } } */
/* { dg-options "-faltivec" } */

extern void abort();

vector signed int
vandc(vector signed int a, vector signed int b)
{
        return vec_andc(a, b);
}

int main ()
{
	char buf [1024];
	vector signed int a1 = (vector signed int) (0XFFFFFFFF);
	vector signed int b1 = (vector signed int) (0X0);

 	if (!vec_all_eq (vandc (a1, b1), a1))
	  abort();
	return 0;
}