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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [simd-5.c] - Blame information for rev 299

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

Line No. Rev Author Line
1 297 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.