[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Headers / altivec-intrin.c
blob50b85c0de30883c17f4394d3e369629bcd7f0e64
1 // RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu -target-cpu power8 \
2 // RUN: -target-feature +altivec -verify %s
4 // Test special behavior of Altivec intrinsics in this file.
6 #include <altivec.h>
8 __attribute__((__aligned__(16))) float x[20];
10 int main(void)
12 vector unsigned char l = vec_lvsl (0, &x[1]); // expected-warning {{is deprecated: use assignment for unaligned little endian loads/stores}}
13 vector unsigned char r = vec_lvsr (0, &x[1]); // expected-warning {{is deprecated: use assignment for unaligned little endian loads/stores}}
15 // FIXME: As noted in ms-intrin.cpp, it would be nice if we didn't have to
16 // hard-code the line number from altivec.h here.
17 // expected-note@altivec.h:* {{deprecated here}}
18 // expected-note@altivec.h:* {{deprecated here}}