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
21 lines
821 B
C
21 lines
821 B
C
// REQUIRES: powerpc-registered-target
|
|
|
|
// 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 -target-feature +altivec -target-feature +power9-vector \
|
|
// RUN: -triple powerpc64le-unknown-unknown -fsyntax-only \
|
|
// RUN: -Wall -Werror -verify %s
|
|
|
|
#include <altivec.h>
|
|
|
|
extern vector signed int vsi;
|
|
extern vector unsigned char vuc;
|
|
|
|
void testInsertWord1(void) {
|
|
int index = 5;
|
|
vector unsigned char v1 = vec_insert4b(vsi, vuc, index); // expected-error {{argument to '__builtin_vsx_insertword' must be a constant integer}}
|
|
vector unsigned long long v2 = vec_extract4b(vuc, index); // expected-error {{argument to '__builtin_vsx_extractuword' must be a constant integer}}
|
|
}
|