aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/simd-5.c
blob: 2d0be4fc78dcb108d114f5595664f2d8bd41bd73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#define vector64 __attribute__((vector_size(8)))

main(){

 vector64 int  c;
vector64 int a = {1, -1};
vector64 int b = {2, -2};
c = -a + b*b*(-1LL);
/* c is now {-5, -3} */

 printf("result is %llx\n", (long long)c); 
}