aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/altivec-4.C
blob: 62cc1f0535fb0e2e9e2e26ee1add0c272a07a8b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-*-eabispe*" "powerpc-ibm-aix*" } { "*" } { "" } } */
/* { dg-options "-maltivec" } */

/* PR c++/14425 */

#include <altivec.h>

vector unsigned int splat0(vector unsigned int x)
{
    return vec_splat(x, 0);
}