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