summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/simd-5.c
blob: 6907fa5e66ac6495b1d2fc8590807347dc91c8a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* h8300 does not have long long */
/* { dg-do assemble { xfail h8300-*-* } } */
/* On SPARC64/SPARC-V9 it fails, except with -m32. */
/* { dg-xfail-if "PR target/9200" { "sparc64-*-*" "sparcv9-*-*" } { "*" } { "-m32" } } */
/* On regular SPARC it doesn't fail, except with -m64. */
/* { dg-xfail-if "PR target/9200" { "sparc*-*-*" } { "-m64" } { "" } } */

#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); 
}