summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/builtins-ppc-altivec.c
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2016-03-24 01:26:08 +0000
committerEric Christopher <echristo@gmail.com>2016-03-24 01:26:08 +0000
commit465027231010d7abaca1ecf8aafc7f61f23bbcd5 (patch)
tree3994120fb318da19966d0b0f16faa29d2b0a1e9d /clang/test/CodeGen/builtins-ppc-altivec.c
parentb29ecbd4e9149c474a6ed3fe9fb4c30f3dcbbe66 (diff)
downloadbcm5719-llvm-465027231010d7abaca1ecf8aafc7f61f23bbcd5.tar.gz
bcm5719-llvm-465027231010d7abaca1ecf8aafc7f61f23bbcd5.zip
The time when -faltivec (or, on clang only, -maltivec) will magically
include altivec.h has come and gone. Rationale: This causes modules, rewrite-includes, etc to be sad and people should just include altivec.h in their source. llvm-svn: 264235
Diffstat (limited to 'clang/test/CodeGen/builtins-ppc-altivec.c')
-rw-r--r--clang/test/CodeGen/builtins-ppc-altivec.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/test/CodeGen/builtins-ppc-altivec.c b/clang/test/CodeGen/builtins-ppc-altivec.c
index f9e0584ad05..1edf99f8681 100644
--- a/clang/test/CodeGen/builtins-ppc-altivec.c
+++ b/clang/test/CodeGen/builtins-ppc-altivec.c
@@ -6,8 +6,11 @@
// RUN: %clang_cc1 -faltivec -triple powerpc64le-unknown-unknown -emit-llvm %s \
// RUN: -o - | FileCheck %s -check-prefix=CHECK-LE
// RUN: not %clang_cc1 -triple powerpc64le-unknown-unknown -emit-llvm %s \
-// RUN: -ferror-limit 0 -o - 2>&1 \
+// RUN: -ferror-limit 0 -DNO_ALTIVEC -o - 2>&1 \
// RUN: | FileCheck %s -check-prefix=CHECK-NOALTIVEC
+#ifndef NO_ALTIVEC
+#include <altivec.h>
+#endif
vector bool char vbc = { 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0 };
vector signed char vsc = { 1, -2, 3, -4, 5, -6, 7, -8, 9, -10, 11, -12, 13, -14, 15, -16 };
OpenPOWER on IntegriCloud