1 /* { dg-do run } */
2 /* { dg-require-effective-target vmx_hw } */
3 /* { dg-options "-O2 -maltivec" } */
4
5 /* Verify it run successfully. */
6
7 #include <altivec.h>
8
9 __attribute__ ((noipa))
10 vector signed int
11 test ()
12 {
13 vector signed int v = {-16, -16, -16, -16};
14 vector signed int res = vec_sld (v, v, 3);
15 return res;
16 }
17
18 int
19 main ()
20 {
21 vector signed int res = test ();
22 if (res[0] != 0xf0ffffff)
23 __builtin_abort ();
24 return 0;
25 }