ubuntu-buildroot/output/build/host-gcc-initial-11.4.0/gcc/testsuite/gcc.target/powerpc/altivec-26.c

12 lines
381 B
C
Raw Normal View History

2024-04-01 15:19:46 +00:00
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
/* 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