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