blob: 016cccd1e9faee96150d40855ca4aee190145c24 (
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);
}
|