blob: 7e6ea00987405b35e9383b6dbbd1c32d39541575 [file] [log] [blame]
Stephen Hines176edba2014-12-01 14:53:08 -08001// RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu -target-cpu power8 \
2// RUN: -faltivec -verify %s
3
4// Test special behavior of Altivec intrinsics in this file.
5
6#include <altivec.h>
7
8__attribute__((__aligned__(16))) float x[20];
9
10int main()
11{
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}}
14}
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.
Pirama Arumuga Nainarb6d69932015-07-01 12:25:36 -070017// expected-note@altivec.h:* {{deprecated here}}
18// expected-note@altivec.h:* {{deprecated here}}