1 /* Test for correct handling of literal arguments. */
2 /* Author: Ziemowit Laski <zlaski@apple.com> */
3 /* { dg-do compile { target powerpc*-*-* } } */
4 /* { dg-xfail-if "" { "powerpc-*-eabispe*" "powerpc-ibm-aix*" } { "*" } { "" } } */
5 /* { dg-options "-maltivec" } */
10 const unsigned char *buf;
11 vector pixel vp = { 3, 4, 5, 6 };
12 vector bool int vbi = { 1, 0, 1, 0 };
13 vector bool short vbs = { 1, 0, 1, 0, 1, 0, 1, 0 };
14 vector bool char vbc = { 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0 };
15 vector signed char vsc;
20 vec_dststt(buf, a, 3);
21 vec_dststt(buf, a, 2);
23 vp = vec_sld(vp, vp, 5);
24 vbc = vec_splat(vbc, 7);
25 vbs = vec_splat(vbs, 12);
26 vp = vec_splat(vp, 17);
27 vbi = vec_splat(vbi, 31);