mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-24 14:05:49 -04:00

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
11 lines
551 B
C
11 lines
551 B
C
// 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;
|
|
vector double v_d2;
|
|
|
|
// These should have errors.
|
|
__vector long double vv_ld3; // expected-error {{cannot use 'long double' with '__vector'}}
|
|
vector long double v_ld4; // expected-error {{cannot use 'long double' with '__vector'}}
|