aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.apple/apple-altivec-3.c
blob: 1112913de1b2d586f625a168f1838b27e4a09af1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* APPLE LOCAL file AltiVec */
/* Providing '-maltivec' should ensure that AltiVec codegen for block copies is enabled,
   even if '-faltivec' is also specified.  */
/* { dg-do compile { target powerpc*-*-darwin* } } */
/* { dg-options "-faltivec -maltivec" } */
typedef struct { vector int a; vector int b; } Scld1;

void testvaScld1 (int n, Scld1);

void foo ()
{
  Scld1 g1sScld1;
  testvaScld1 (1, g1sScld1);  /* { dg-bogus "disabled" } */
}