mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-15 12:39:19 +00:00
758aad76d8
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
19 lines
782 B
C
19 lines
782 B
C
// RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu -target-cpu power8 \
|
|
// RUN: -target-feature +altivec -verify %s
|
|
|
|
// Test special behavior of Altivec intrinsics in this file.
|
|
|
|
#include <altivec.h>
|
|
|
|
__attribute__((__aligned__(16))) float x[20];
|
|
|
|
int main()
|
|
{
|
|
vector unsigned char l = vec_lvsl (0, &x[1]); // expected-warning {{is deprecated: use assignment for unaligned little endian loads/stores}}
|
|
vector unsigned char r = vec_lvsr (0, &x[1]); // expected-warning {{is deprecated: use assignment for unaligned little endian loads/stores}}
|
|
}
|
|
// FIXME: As noted in ms-intrin.cpp, it would be nice if we didn't have to
|
|
// hard-code the line number from altivec.h here.
|
|
// expected-note@altivec.h:* {{deprecated here}}
|
|
// expected-note@altivec.h:* {{deprecated here}}
|