1 /* { dg-do compile } */
3 /* Checks from the original ops.c that pass pointers to long or
4 unsigned long to operations that do not support that in released
5 versions of altivec.h. */
10 extern long * *var_long_ptr
;
11 extern unsigned long * *var_unsigned_long_ptr
;
12 extern vector
signed int * *var_vec_s32_ptr
;
13 extern vector
signed int *var_vec_s32
;
14 extern vector
unsigned char * *var_vec_u8_ptr
;
15 extern vector
unsigned char *var_vec_u8
;
16 extern vector
unsigned int * *var_vec_u32_ptr
;
17 extern vector
unsigned int *var_vec_u32
;
20 vec_st(var_vec_s32
[0], var_int
[1], var_long_ptr
[2]); /* { dg-error "invalid parameter combination" } */
21 vec_st(var_vec_u32
[0], var_int
[1], var_unsigned_long_ptr
[2]); /* { dg-error "invalid parameter combination" } */
24 vec_ste(var_vec_s32
[0], var_int
[1], var_long_ptr
[2]); /* { dg-error "invalid parameter combination" } */
25 vec_ste(var_vec_u32
[0], var_int
[1], var_unsigned_long_ptr
[2]); /* { dg-error "invalid parameter combination" } */
26 vec_stl(var_vec_s32
[0], var_int
[1], var_long_ptr
[2]); /* { dg-error "invalid parameter combination" } */
27 vec_stl(var_vec_u32
[0], var_int
[1], var_unsigned_long_ptr
[2]); /* { dg-error "invalid parameter combination" } */
28 vec_stvewx(var_vec_s32
[0], var_int
[1], var_long_ptr
[2]); /* { dg-error "invalid parameter combination" } */
29 vec_stvewx(var_vec_u32
[0], var_int
[1], var_unsigned_long_ptr
[2]); /* { dg-error "invalid parameter combination" } */
30 vec_stvx(var_vec_s32
[0], var_int
[1], var_long_ptr
[2]); /* { dg-error "invalid parameter combination" } */
31 vec_stvx(var_vec_u32
[0], var_int
[1], var_unsigned_long_ptr
[2]); /* { dg-error "invalid parameter combination" } */
32 vec_stvxl(var_vec_s32
[0], var_int
[1], var_long_ptr
[2]); /* { dg-error "invalid parameter combination" } */
33 vec_stvxl(var_vec_u32
[0], var_int
[1], var_unsigned_long_ptr
[2]); /* { dg-error "invalid parameter combination" } */