1cad3a5f7SBill Schmidt // RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu -target-cpu power8 \ 2758aad76SEric Christopher // RUN: -target-feature +altivec -verify %s 3cad3a5f7SBill Schmidt 4cad3a5f7SBill Schmidt // Test special behavior of Altivec intrinsics in this file. 5cad3a5f7SBill Schmidt 6cad3a5f7SBill Schmidt #include <altivec.h> 7cad3a5f7SBill Schmidt 8cad3a5f7SBill Schmidt __attribute__((__aligned__(16))) float x[20]; 9cad3a5f7SBill Schmidt main(void)10*7de71613SAaron Ballmanint main(void) 11cad3a5f7SBill Schmidt { 12cad3a5f7SBill Schmidt vector unsigned char l = vec_lvsl (0, &x[1]); // expected-warning {{is deprecated: use assignment for unaligned little endian loads/stores}} 13cad3a5f7SBill Schmidt vector unsigned char r = vec_lvsr (0, &x[1]); // expected-warning {{is deprecated: use assignment for unaligned little endian loads/stores}} 14cad3a5f7SBill Schmidt } 15cad3a5f7SBill Schmidt // FIXME: As noted in ms-intrin.cpp, it would be nice if we didn't have to 16cad3a5f7SBill Schmidt // hard-code the line number from altivec.h here. 178be14f11SBill Seurer // expected-note@altivec.h:* {{deprecated here}} 188be14f11SBill Seurer // expected-note@altivec.h:* {{deprecated here}} 19