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 | |
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')
-rw-r--r-- | clang/test/CodeGen/altivec.c | 2 | ||||
-rw-r--r-- | clang/test/CodeGen/builtins-ppc-altivec.c | 6 | ||||
-rw-r--r-- | clang/test/CodeGen/builtins-ppc-crypto-disabled.c | 6 | ||||
-rw-r--r-- | clang/test/CodeGen/builtins-ppc-crypto.c | 4 | ||||
-rw-r--r-- | clang/test/CodeGen/builtins-ppc-error.c | 4 | ||||
-rw-r--r-- | clang/test/CodeGen/builtins-ppc-htm.c | 2 | ||||
-rw-r--r-- | clang/test/CodeGen/builtins-ppc-p8vector.c | 6 | ||||
-rw-r--r-- | clang/test/CodeGen/builtins-ppc-p9vector.c | 4 | ||||
-rw-r--r-- | clang/test/CodeGen/builtins-ppc-quadword.c | 6 | ||||
-rw-r--r-- | clang/test/CodeGen/builtins-ppc-vsx.c | 4 | ||||
-rw-r--r-- | clang/test/CodeGen/ppc64-align-struct.c | 2 | ||||
-rw-r--r-- | clang/test/CodeGen/ppc64-vector.c | 2 | ||||
-rw-r--r-- | clang/test/CodeGen/ppc64le-aggregates.c | 2 |
13 files changed, 25 insertions, 25 deletions
diff --git a/clang/test/CodeGen/altivec.c b/clang/test/CodeGen/altivec.c index 29823031b56..a4d38fa23b7 100644 --- a/clang/test/CodeGen/altivec.c +++ b/clang/test/CodeGen/altivec.c @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -faltivec -triple powerpc-unknown-unknown -emit-llvm %s -o - | FileCheck %s +// RUN: %clang_cc1 -target-feature +altivec -triple powerpc-unknown-unknown -emit-llvm %s -o - | FileCheck %s // Check initialization diff --git a/clang/test/CodeGen/builtins-ppc-altivec.c b/clang/test/CodeGen/builtins-ppc-altivec.c index d54a69802ff..99cf3c25387 100644 --- a/clang/test/CodeGen/builtins-ppc-altivec.c +++ b/clang/test/CodeGen/builtins-ppc-altivec.c @@ -1,9 +1,9 @@ // REQUIRES: powerpc-registered-target -// RUN: %clang_cc1 -faltivec -triple powerpc-unknown-unknown -emit-llvm %s \ +// RUN: %clang_cc1 -target-feature +altivec -triple powerpc-unknown-unknown -emit-llvm %s \ // RUN: -o - | FileCheck %s -// RUN: %clang_cc1 -faltivec -triple powerpc64-unknown-unknown -emit-llvm %s \ +// RUN: %clang_cc1 -target-feature +altivec -triple powerpc64-unknown-unknown -emit-llvm %s \ // RUN: -o - | FileCheck %s -// RUN: %clang_cc1 -faltivec -triple powerpc64le-unknown-unknown -emit-llvm %s \ +// RUN: %clang_cc1 -target-feature +altivec -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 -DNO_ALTIVEC -o - 2>&1 \ diff --git a/clang/test/CodeGen/builtins-ppc-crypto-disabled.c b/clang/test/CodeGen/builtins-ppc-crypto-disabled.c index e6a8a9337aa..e0b9da0647c 100644 --- a/clang/test/CodeGen/builtins-ppc-crypto-disabled.c +++ b/clang/test/CodeGen/builtins-ppc-crypto-disabled.c @@ -1,13 +1,13 @@ // REQUIRES: powerpc-registered-target -// RUN: not %clang_cc1 -faltivec -triple powerpc64le-unknown-unknown \ +// RUN: not %clang_cc1 -target-feature +altivec -triple powerpc64le-unknown-unknown \ // RUN: -target-cpu pwr8 -target-feature -crypto -emit-llvm %s -o - 2>&1 \ // RUN: | FileCheck %s -// RUN: not %clang_cc1 -faltivec -triple powerpc64-unknown-unknown \ +// RUN: not %clang_cc1 -target-feature +altivec -triple powerpc64-unknown-unknown \ // RUN: -target-cpu pwr8 -target-feature -crypto -emit-llvm %s -o - 2>&1 \ // RUN: | FileCheck %s -// RUN: not %clang_cc1 -faltivec -triple powerpc64-unknown-unknown \ +// RUN: not %clang_cc1 -target-feature +altivec -triple powerpc64-unknown-unknown \ // RUN: -target-cpu pwr8 -target-feature -power8-vector \ // RUN: -target-feature -crypto -emit-llvm %s -o - 2>&1 \ // RUN: | FileCheck %s -check-prefix=CHECK-P8V diff --git a/clang/test/CodeGen/builtins-ppc-crypto.c b/clang/test/CodeGen/builtins-ppc-crypto.c index eaf568b09fb..04f06f4d67d 100644 --- a/clang/test/CodeGen/builtins-ppc-crypto.c +++ b/clang/test/CodeGen/builtins-ppc-crypto.c @@ -1,9 +1,9 @@ // REQUIRES: powerpc-registered-target -// RUN: %clang_cc1 -faltivec -triple powerpc64le-unknown-unknown \ +// RUN: %clang_cc1 -target-feature +altivec -triple powerpc64le-unknown-unknown \ // RUN: -target-feature +crypto -target-feature +power8-vector \ // RUN: -emit-llvm %s -o - | FileCheck %s -// RUN: %clang_cc1 -faltivec -triple powerpc64-unknown-unknown \ +// RUN: %clang_cc1 -target-feature +altivec -triple powerpc64-unknown-unknown \ // RUN: -target-feature +crypto -target-feature +power8-vector \ // RUN: -emit-llvm %s -o - | FileCheck %s #include <altivec.h> diff --git a/clang/test/CodeGen/builtins-ppc-error.c b/clang/test/CodeGen/builtins-ppc-error.c index 5860c4f9e77..e8d2a37a21e 100644 --- a/clang/test/CodeGen/builtins-ppc-error.c +++ b/clang/test/CodeGen/builtins-ppc-error.c @@ -1,10 +1,10 @@ // REQUIRES: powerpc-registered-target -// RUN: %clang_cc1 -faltivec -target-feature +power9-vector \ +// RUN: %clang_cc1 -target-feature +altivec -target-feature +power9-vector \ // RUN: -triple powerpc64-unknown-unknown -fsyntax-only \ // RUN: -Wall -Werror -verify %s -// RUN: %clang_cc1 -faltivec -target-feature +power9-vector \ +// RUN: %clang_cc1 -target-feature +altivec -target-feature +power9-vector \ // RUN: -triple powerpc64le-unknown-unknown -fsyntax-only \ // RUN: -Wall -Werror -verify %s diff --git a/clang/test/CodeGen/builtins-ppc-htm.c b/clang/test/CodeGen/builtins-ppc-htm.c index 87baa77af81..d7e7a9148e0 100644 --- a/clang/test/CodeGen/builtins-ppc-htm.c +++ b/clang/test/CodeGen/builtins-ppc-htm.c @@ -1,5 +1,5 @@ // REQUIRES: powerpc-registered-target -// RUN: %clang_cc1 -faltivec -target-feature +htm -triple powerpc64-unknown-unknown -emit-llvm %s -o - | FileCheck %s +// RUN: %clang_cc1 -target-feature +altivec -target-feature +htm -triple powerpc64-unknown-unknown -emit-llvm %s -o - | FileCheck %s void test1(long int *r, int code, long int *a, long int *b) { // CHECK-LABEL: define void @test1 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 diff --git a/clang/test/CodeGen/builtins-ppc-p9vector.c b/clang/test/CodeGen/builtins-ppc-p9vector.c index 42316970d8d..f92df86561a 100644 --- a/clang/test/CodeGen/builtins-ppc-p9vector.c +++ b/clang/test/CodeGen/builtins-ppc-p9vector.c @@ -1,9 +1,9 @@ // REQUIRES: powerpc-registered-target -// RUN: %clang_cc1 -faltivec -target-feature +power9-vector \ +// RUN: %clang_cc1 -target-feature +altivec -target-feature +power9-vector \ // RUN: -triple powerpc64-unknown-unknown -emit-llvm %s \ // RUN: -o - | FileCheck %s -check-prefix=CHECK-BE -// RUN: %clang_cc1 -faltivec -target-feature +power9-vector \ +// RUN: %clang_cc1 -target-feature +altivec -target-feature +power9-vector \ // RUN: -triple powerpc64le-unknown-unknown -emit-llvm %s \ // RUN: -o - | FileCheck %s diff --git a/clang/test/CodeGen/builtins-ppc-quadword.c b/clang/test/CodeGen/builtins-ppc-quadword.c index 3e168c8b1be..7d014db6132 100644 --- a/clang/test/CodeGen/builtins-ppc-quadword.c +++ b/clang/test/CodeGen/builtins-ppc-quadword.c @@ -1,12 +1,12 @@ // REQUIRES: powerpc-registered-target -// RUN: %clang_cc1 -faltivec -target-feature +power8-vector \ +// RUN: %clang_cc1 -target-feature +altivec -target-feature +power8-vector \ // RUN: -triple powerpc64-unknown-unknown -emit-llvm %s -o - | FileCheck %s -// RUN: %clang_cc1 -faltivec -target-feature +power8-vector \ +// RUN: %clang_cc1 -target-feature +altivec -target-feature +power8-vector \ // RUN: -triple powerpc64le-unknown-unknown -emit-llvm %s -o - \ // RUN: | FileCheck %s -check-prefix=CHECK-LE -// RUN: not %clang_cc1 -faltivec -triple powerpc-unknown-unknown \ +// RUN: not %clang_cc1 -target-feature +altivec -triple powerpc-unknown-unknown \ // RUN: -emit-llvm %s -o - 2>&1 | FileCheck %s -check-prefix=CHECK-PPC #include <altivec.h> diff --git a/clang/test/CodeGen/builtins-ppc-vsx.c b/clang/test/CodeGen/builtins-ppc-vsx.c index 16c72c404d9..9e0052630ef 100644 --- a/clang/test/CodeGen/builtins-ppc-vsx.c +++ b/clang/test/CodeGen/builtins-ppc-vsx.c @@ -1,6 +1,6 @@ // REQUIRES: powerpc-registered-target -// RUN: %clang_cc1 -faltivec -target-feature +vsx -triple powerpc64-unknown-unknown -emit-llvm %s -o - | FileCheck %s -// RUN: %clang_cc1 -faltivec -target-feature +vsx -triple powerpc64le-unknown-unknown -emit-llvm %s -o - | FileCheck %s -check-prefix=CHECK-LE +// RUN: %clang_cc1 -target-feature +altivec -target-feature +vsx -triple powerpc64-unknown-unknown -emit-llvm %s -o - | FileCheck %s +// RUN: %clang_cc1 -target-feature +altivec -target-feature +vsx -triple powerpc64le-unknown-unknown -emit-llvm %s -o - | FileCheck %s -check-prefix=CHECK-LE #include <altivec.h> vector bool char vbc = { 0, 1, 0, 1, 0, 1, 0, 1, diff --git a/clang/test/CodeGen/ppc64-align-struct.c b/clang/test/CodeGen/ppc64-align-struct.c index 6a04d0cd84f..5894a6aeb37 100644 --- a/clang/test/CodeGen/ppc64-align-struct.c +++ b/clang/test/CodeGen/ppc64-align-struct.c @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -faltivec -triple powerpc64-unknown-linux-gnu -emit-llvm -o - %s | FileCheck %s +// RUN: %clang_cc1 -target-feature +altivec -triple powerpc64-unknown-linux-gnu -emit-llvm -o - %s | FileCheck %s #include <stdarg.h> diff --git a/clang/test/CodeGen/ppc64-vector.c b/clang/test/CodeGen/ppc64-vector.c index f0211f0ec19..87deb0f585f 100644 --- a/clang/test/CodeGen/ppc64-vector.c +++ b/clang/test/CodeGen/ppc64-vector.c @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -faltivec -triple powerpc64-unknown-linux-gnu -emit-llvm -o - %s | FileCheck %s +// RUN: %clang_cc1 -target-feature +altivec -triple powerpc64-unknown-linux-gnu -emit-llvm -o - %s | FileCheck %s typedef short v2i16 __attribute__((vector_size (4))); typedef short v3i16 __attribute__((vector_size (6))); diff --git a/clang/test/CodeGen/ppc64le-aggregates.c b/clang/test/CodeGen/ppc64le-aggregates.c index 04d2fb4766e..f78f26a5928 100644 --- a/clang/test/CodeGen/ppc64le-aggregates.c +++ b/clang/test/CodeGen/ppc64le-aggregates.c @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -faltivec -triple powerpc64le-unknown-linux-gnu -emit-llvm -o - %s | FileCheck %s +// RUN: %clang_cc1 -target-feature +altivec -triple powerpc64le-unknown-linux-gnu -emit-llvm -o - %s | FileCheck %s // Test homogeneous float aggregate passing and returning. |