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/Parser | |
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/Parser')
-rw-r--r-- | test/Parser/altivec-csk-bool.c | 4 | ||||
-rw-r--r-- | test/Parser/altivec.c | 6 | ||||
-rw-r--r-- | test/Parser/cxx-altivec.cpp | 6 | ||||
-rw-r--r-- | test/Parser/vsx.c | 4 |
4 files changed, 10 insertions, 10 deletions
diff --git a/test/Parser/altivec-csk-bool.c b/test/Parser/altivec-csk-bool.c index c1c253958c..dc7fa1da39 100644 --- a/test/Parser/altivec-csk-bool.c +++ b/test/Parser/altivec-csk-bool.c @@ -1,5 +1,5 @@ -// RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu -faltivec -fsyntax-only %s -// RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu -faltivec -fsyntax-only %s +// RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu -target-feature +altivec -fsyntax-only %s +// RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu -target-feature +altivec -fsyntax-only %s // PR16456: Verify that bool, true, false are treated as context-sensitive // keywords (and therefore available for use as identifiers) when in diff --git a/test/Parser/altivec.c b/test/Parser/altivec.c index 4d3a7730c3..769b4dec98 100644 --- a/test/Parser/altivec.c +++ b/test/Parser/altivec.c @@ -1,6 +1,6 @@ -// RUN: %clang_cc1 -triple=powerpc-apple-darwin8 -faltivec -fsyntax-only -verify %s -// RUN: %clang_cc1 -triple=powerpc64-unknown-linux-gnu -faltivec -fsyntax-only -verify %s -// RUN: %clang_cc1 -triple=powerpc64le-unknown-linux-gnu -faltivec -fsyntax-only -verify %s +// RUN: %clang_cc1 -triple=powerpc-apple-darwin8 -target-feature +altivec -fsyntax-only -verify %s +// RUN: %clang_cc1 -triple=powerpc64-unknown-linux-gnu -target-feature +altivec -fsyntax-only -verify %s +// RUN: %clang_cc1 -triple=powerpc64le-unknown-linux-gnu -target-feature +altivec -fsyntax-only -verify %s __vector char vv_c; __vector signed char vv_sc; diff --git a/test/Parser/cxx-altivec.cpp b/test/Parser/cxx-altivec.cpp index 5b0da6c5e6..6395452010 100644 --- a/test/Parser/cxx-altivec.cpp +++ b/test/Parser/cxx-altivec.cpp @@ -1,6 +1,6 @@ -// RUN: %clang_cc1 -triple=powerpc-apple-darwin8 -faltivec -fsyntax-only -verify -std=c++11 %s -// RUN: %clang_cc1 -triple=powerpc64-unknown-linux-gnu -faltivec -fsyntax-only -verify -std=c++11 %s -// RUN: %clang_cc1 -triple=powerpc64le-unknown-linux-gnu -faltivec -fsyntax-only -verify -std=c++11 %s +// RUN: %clang_cc1 -triple=powerpc-apple-darwin8 -target-feature +altivec -fsyntax-only -verify -std=c++11 %s +// RUN: %clang_cc1 -triple=powerpc64-unknown-linux-gnu -target-feature +altivec -fsyntax-only -verify -std=c++11 %s +// RUN: %clang_cc1 -triple=powerpc64le-unknown-linux-gnu -target-feature +altivec -fsyntax-only -verify -std=c++11 %s #include <altivec.h> __vector char vv_c; diff --git a/test/Parser/vsx.c b/test/Parser/vsx.c index ead09814c8..32bc934a7e 100644 --- a/test/Parser/vsx.c +++ b/test/Parser/vsx.c @@ -1,5 +1,5 @@ -// RUN: %clang_cc1 -triple=powerpc64-unknown-linux-gnu -faltivec -target-feature +vsx -fsyntax-only -verify %s -// RUN: %clang_cc1 -triple=powerpc64le-unknown-linux-gnu -faltivec -target-feature +vsx -fsyntax-only -verify %s +// RUN: %clang_cc1 -triple=powerpc64-unknown-linux-gnu -target-feature +altivec -target-feature +vsx -fsyntax-only -verify %s +// RUN: %clang_cc1 -triple=powerpc64le-unknown-linux-gnu -target-feature +altivec -target-feature +vsx -fsyntax-only -verify %s // Legitimate for VSX. __vector double vv_d1; |