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 | 758aad76d88000fd9cada032fb4e7afa5e27e61c (patch) | |
| tree | ba3b9dbd6f72d605db42eaf1544e02d765781fac /clang/test/CodeGen/builtins-ppc-p8vector.c | |
| parent | 8445cbd1ca964ff490268e0854ecafaf97718639 (diff) | |
| download | bcm5719-llvm-758aad76d88000fd9cada032fb4e7afa5e27e61c.tar.gz bcm5719-llvm-758aad76d88000fd9cada032fb4e7afa5e27e61c.zip | |
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.
llvm-svn: 298449
Diffstat (limited to 'clang/test/CodeGen/builtins-ppc-p8vector.c')
| -rw-r--r-- | clang/test/CodeGen/builtins-ppc-p8vector.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/CodeGen/builtins-ppc-p8vector.c b/clang/test/CodeGen/builtins-ppc-p8vector.c index 97a663c2f28..9f2913847e5 100644 --- a/clang/test/CodeGen/builtins-ppc-p8vector.c +++ b/clang/test/CodeGen/builtins-ppc-p8vector.c @@ -1,7 +1,7 @@ // REQUIRES: powerpc-registered-target -// RUN: %clang_cc1 -faltivec -target-feature +power8-vector -triple powerpc64-unknown-unknown -emit-llvm %s -o - | FileCheck %s -// RUN: %clang_cc1 -faltivec -target-feature +power8-vector -triple powerpc64le-unknown-unknown -emit-llvm %s -o - | FileCheck %s -check-prefix=CHECK-LE -// RUN: not %clang_cc1 -faltivec -target-feature +vsx -triple powerpc64-unknown-unknown -emit-llvm %s -o - 2>&1 | FileCheck %s -check-prefix=CHECK-PPC +// RUN: %clang_cc1 -target-feature +altivec -target-feature +power8-vector -triple powerpc64-unknown-unknown -emit-llvm %s -o - | FileCheck %s +// RUN: %clang_cc1 -target-feature +altivec -target-feature +power8-vector -triple powerpc64le-unknown-unknown -emit-llvm %s -o - | FileCheck %s -check-prefix=CHECK-LE +// RUN: not %clang_cc1 -target-feature +altivec -target-feature +vsx -triple powerpc64-unknown-unknown -emit-llvm %s -o - 2>&1 | FileCheck %s -check-prefix=CHECK-PPC // Added -target-feature +vsx above to avoid errors about "vector double" and to // generate the correct errors for functions that are only overloaded with VSX // (vec_cmpge, vec_cmple). Without this option, there is only one overload so |

