2021-07-27 01:35:19 +08:00
|
|
|
// REQUIRES: powerpc-registered-target
|
2021-09-29 19:14:12 +08:00
|
|
|
// RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu -fsyntax-only \
|
2021-07-27 01:35:19 +08:00
|
|
|
// RUN: -target-cpu pwr8 -Wall -Werror -verify %s
|
2021-09-29 19:14:12 +08:00
|
|
|
// RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu -fsyntax-only \
|
2021-07-27 01:35:19 +08:00
|
|
|
// RUN: -target-cpu pwr8 -Wall -Werror -verify %s
|
|
|
|
// RUN: %clang_cc1 -triple powerpc64-unknown-aix -fsyntax-only \
|
|
|
|
// RUN: -target-cpu pwr8 -Wall -Werror -verify %s
|
|
|
|
// RUN: %clang_cc1 -triple powerpc-unknown-aix -fsyntax-only \
|
|
|
|
// RUN: -target-cpu pwr8 -Wall -Werror -verify %s
|
|
|
|
|
|
|
|
#include <altivec.h>
|
|
|
|
vector unsigned char test_ldrmb(char *ptr) {
|
|
|
|
return __vec_ldrmb(ptr, 17); // expected-error {{argument value 17 is outside the valid range [1, 16]}}
|
|
|
|
}
|
|
|
|
|
|
|
|
void test_strmb(char *ptr, vector unsigned char data) {
|
|
|
|
__vec_strmb(ptr, 17, data); // expected-error {{argument value 17 is outside the valid range [1, 16]}}
|
|
|
|
}
|
|
|
|
|
|
|
|
vector unsigned char test_ldrmbb(char *ptr) {
|
|
|
|
return __builtin_vsx_ldrmb(ptr, 17); // expected-error {{argument value 17 is outside the valid range [1, 16]}}
|
|
|
|
}
|
|
|
|
|
|
|
|
void test_strmbb(char *ptr, vector unsigned char data) {
|
|
|
|
__builtin_vsx_strmb(ptr, 17, data); // expected-error {{argument value 17 is outside the valid range [1, 16]}}
|
|
|
|
}
|