2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / simd-5.c
blob1575dc1a8d4c06bbaf16ade080c893413a4f9ff3
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" } { "" } } */
6 #define vector64 __attribute__((vector_size(8)))
8 main(){
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} */
16 printf("result is %llx\n", (long long)c);