diff options
author | Eric Christopher <echristo@gmail.com> | 2017-03-21 22:06:18 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2017-03-21 22:06:18 +0000 |
commit | a776ed1122e48f9ade40c454678226303d8fab52 (patch) | |
tree | 41b34a4ee212e18c147a194338882a9a712347a4 /test/Headers | |
parent | 845442e018c91327a550c7df3b0c61dd9d83547c (diff) |
Remove the -faltivec alias option and replace it with -maltivec everywhere.
The alias was only ever used on darwin and had some issues there,
and isn't used in practice much. Also fixes a problem with -mno-altivec
not turning off -maltivec.
Also add a diagnostic for faltivec/fno-altivec that directs users to use
maltivec options and include the altivec.h file explicitly.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@298449 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Headers')
-rw-r--r-- | test/Headers/altivec-header.c | 6 | ||||
-rw-r--r-- | test/Headers/altivec-intrin.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/Headers/altivec-header.c b/test/Headers/altivec-header.c index 26f42e1400..733ab5002a 100644 --- a/test/Headers/altivec-header.c +++ b/test/Headers/altivec-header.c @@ -1,6 +1,6 @@ -// RUN: %clang_cc1 -triple powerpc64-unknown-unknown -faltivec -ffreestanding -emit-llvm -o - %s | FileCheck %s -// RUN: %clang_cc1 -triple powerpc64-unknown-unknown -faltivec -ffreestanding -emit-llvm -fno-lax-vector-conversions -o - %s | FileCheck %s -// RUN: %clang_cc1 -triple powerpc64-unknown-unknown -faltivec -ffreestanding -emit-llvm -x c++ -o - %s | FileCheck %s +// RUN: %clang_cc1 -triple powerpc64-unknown-unknown -target-feature +altivec -ffreestanding -emit-llvm -o - %s | FileCheck %s +// RUN: %clang_cc1 -triple powerpc64-unknown-unknown -target-feature +altivec -ffreestanding -emit-llvm -fno-lax-vector-conversions -o - %s | FileCheck %s +// RUN: %clang_cc1 -triple powerpc64-unknown-unknown -target-feature +altivec -ffreestanding -emit-llvm -x c++ -o - %s | FileCheck %s #include <altivec.h> diff --git a/test/Headers/altivec-intrin.c b/test/Headers/altivec-intrin.c index 7e6ea00987..c71b48da04 100644 --- a/test/Headers/altivec-intrin.c +++ b/test/Headers/altivec-intrin.c @@ -1,5 +1,5 @@ // RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu -target-cpu power8 \ -// RUN: -faltivec -verify %s +// RUN: -target-feature +altivec -verify %s // Test special behavior of Altivec intrinsics in this file. |