1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
|
/* { dg-do compile } */
/* { dg-require-effective-target powerpc_p9vector_ok } */
/* { dg-require-effective-target int128 } */
/* { dg-options "-mdejagnu-cpu=power9 -O2" } */
/* PR90763: PowerPC vec_xl_len should take const.
*/
#include <altivec.h>
vector unsigned char vec_load_uc(unsigned char *p, int num) {
return vec_xl_len(p, num);
}
vector unsigned char vec_load_const_uc(const unsigned char *p, int num) {
return vec_xl_len(p, num);
}
vector signed char vec_load_sc(signed char *p, int num) {
return vec_xl_len(p, num);
}
vector signed char vec_load_const_sc(const signed char *p, int num) {
return vec_xl_len(p, num);
}
vector signed short vec_load_ss(signed short *p, int num) {
return vec_xl_len(p, num);
}
vector signed short vec_load_const_ss(const signed short *p, int num) {
return vec_xl_len(p, num);
}
vector unsigned short vec_load_us(unsigned short *p, int num) {
return vec_xl_len(p, num);
}
vector unsigned short vec_load_const_us(const unsigned short *p, int num) {
return vec_xl_len(p, num);
}
vector signed int vec_load_si(signed int *p, int num) {
return vec_xl_len(p, num);
}
vector signed int vec_load_const_si(const signed int *p, int num) {
return vec_xl_len(p, num);
}
vector unsigned int vec_load_ui(unsigned int *p, int num) {
return vec_xl_len(p, num);
}
vector unsigned int vec_load_const_ui(const unsigned int *p, int num) {
return vec_xl_len(p, num);
}
vector signed long long vec_load_sll(signed long long *p, int num) {
return vec_xl_len(p, num);
}
vector signed long long vec_load_const_sll(const signed long long *p, int num) {
return vec_xl_len(p, num);
}
vector unsigned long long vec_load_ull(unsigned long long *p, int num) {
return vec_xl_len(p, num);
}
vector unsigned long long vec_load_const_ull(const unsigned long long *p, int num) {
return vec_xl_len(p, num);
}
vector signed __int128 vec_load_si128(signed __int128 *p, int num) {
return vec_xl_len(p, num);
}
vector signed __int128 vec_load_const_si128(const signed __int128 *p, int num) {
return vec_xl_len(p, num);
}
vector unsigned __int128 vec_load_ui128(unsigned __int128 *p, int num) {
return vec_xl_len(p, num);
}
vector unsigned __int128 vec_load_const_ui128(const unsigned __int128 *p, int num) {
return vec_xl_len(p, num);
}
vector float vec_load_f(float *p, int num) {
return vec_xl_len(p, num);
}
vector float vec_load_const_f(const float *p, int num) {
return vec_xl_len(p, num);
}
vector double vec_load_d(double *p, int num) {
return vec_xl_len(p, num);
}
vector double vec_load_const_d(const double *p, int num) {
return vec_xl_len(p, num);
}
|