OSDN Git Service

Formatting fixes.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.c-torture / compile / simd-5.c
1 /* On SPARC64/SPARC-V9 it fails at -O0 and -O1, except with -m32. */
2 /* { dg-xfail-if "PR target/9200" { "sparc64-*-*" "sparcv9-*-*" } { "-O0" "-O1" } { "-m32" } } */
3 /* On regular SPARC it doesn't fail, except with -m64 at -O0 and -O1. */
4 /* { dg-xfail-if "PR target/9200" { "sparc-*-*" } { "-m64 -O0" "-m64 -O1" } { "" } } */
5
6 #define vector64 __attribute__((vector_size(8)))
7
8 main(){
9
10  vector64 int  c;
11 vector64 int a = {1, -1};
12 vector64 int b = {2, -2};
13 c = -a + b*b*(-1LL);
14 /* c is now {5, 3} */
15
16  printf("result is %llx\n", (long long)c); 
17 }