1 /* { dg-do compile } */
2 /* { dg-options "-O3 -mzarch -march=z14 -mzvector" } */
3 
4 #include <vecintrin.h>
5 
6 vector double
test(vector double x)7 test (vector double x)
8 {
9   return vec_revb (x);
10 }
11 
12 vector double
test2(vector double * x)13 test2 (vector double *x)
14 {
15   return vec_revb (*x);
16 }
17 
18 vector double
test3(double * x)19 test3 (double *x)
20 {
21   return vec_revb (vec_xl (0, x));
22 }
23 
24 /* { dg-final { scan-assembler-times "vperm\t" 3 } } */
25