blob: b095b88eee44db7ac72a5d63440fb27d19a915c2 [file] [log] [blame]
/* APPLE LOCAL file AltiVec */
/* Vectors in template functions. */
/* { dg-do compile { target powerpc*-*-darwin* } } */
/* { dg-options "-faltivec -Wall" } */
template<int I>
void FooBar()
{
vector unsigned char va, vb, vc;
vc = (vector unsigned char)vec_mergeh((vector unsigned short)va, (vector unsigned short)vb);
}
int main (int argc, char * const argv[])
{
FooBar<0>();
return 0;
}