aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/altivec-26.c
blob: 96369ec54aeaae61864f963fdaa0cc41c7bc30ca (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-options "-maltivec" } */
/* { dg-require-effective-target powerpc_altivec } */

/* A compiler implementing context-sensitive keywords must define this
   preprocessor macro so that altivec.h does not provide the vector,
   pixel, etc. macros.  */

#ifndef __APPLE_ALTIVEC__
#error __APPLE_ALTIVEC__ not pre-defined
#endif