OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [simd-5.c] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 688 jeremybenn
#define vector64 __attribute__((vector_size(8)))
2
 
3
main(){
4
 
5
 vector64 int  c;
6
vector64 int a = {1, -1};
7
vector64 int b = {2, -2};
8
c = -a + b*b*(-1LL);
9
/* c is now {5, 3} */
10
 
11
 printf("result is %llx\n", (long long)c);
12
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.