1 /* { dg-do run { target { power10_hw } } } */
2 /* { dg-do link { target { ! power10_hw } } } */
3 /* { dg-require-effective-target power10_ok } */
4 /* { dg-options "-mdejagnu-cpu=power10" } */
8 extern void abort (void);
11 main (int argc
, char *argv
[])
13 vector
unsigned long long source_a
= { 0, 14 };
14 vector
unsigned long long source_b
= { 16, 30 };
16 vector
unsigned long long int result_1
= { 0, 14 };
17 vector
unsigned long long int result_2
= { 0, 16 };
18 vector
unsigned long long int result_3
= { 0, 30 };
19 vector
unsigned long long int result_4
= { 0, 0 };
21 if (!vec_all_eq (vec_extractl (source_a
, source_b
, 8), result_1
))
23 if (!vec_all_eq (vec_extractl (source_a
, source_b
, 16), result_2
))
25 if (!vec_all_eq (vec_extractl (source_b
, source_a
, 8), result_3
))
27 if (!vec_all_eq (vec_extractl (source_b
, source_a
, 16), result_4
))