1 /* { dg-do run { target powerpc*-*-* } } */
2 /* { dg-require-effective-target vmx_hw } */
3 /* { dg-require-effective-target int128 } */
4 /* { dg-options "-maltivec -O0 -Wall -Wno-deprecated" } */
9 static __vector __int128 v
;
10 static __vector __int128
*pv
;
12 static __vector
unsigned __int128 uv
;
13 static __vector
unsigned __int128
*puv
;
16 static __int128
*pi128
;
18 static unsigned __int128 u128
;
19 static unsigned __int128
*pu128
;
39 main (int argc
, char *argv
[])
41 __vector __int128 loaded_v
;
42 __vector
unsigned __int128 loaded_uv
;
45 * <Type> result = vec_ld (int index, __vector <Type> v)
50 loaded_v
= vec_ld (0, pv
);
51 if (loaded_v
[0] != -1)
54 loaded_uv
= vec_ld (0, puv
);
55 if (loaded_uv
[0] != 0xcafebabe)
58 loaded_v
= vec_ld (0, pi128
);
59 if (loaded_v
[0] != 0xfabeabe)
62 loaded_uv
= vec_ld (0, pu128
);
63 if (loaded_uv
[0] != 0xabefabe)