1 /* { dg-options "-mdejagnu-cpu=power10" } */
5 extern void abort (void);
8 main (int argc
, char *argv
[])
10 vector
unsigned long long source_a
= { 0, 14 };
11 vector
unsigned long long source_b
= { 16, 30 };
13 vector
unsigned long long int result_1
= { 0, 14 };
14 vector
unsigned long long int result_2
= { 0, 16 };
15 vector
unsigned long long int result_3
= { 0, 30 };
16 vector
unsigned long long int result_4
= { 0, 0 };
18 if (!vec_all_eq (vec_extractl (source_a
, source_b
, 8), result_1
))
20 if (!vec_all_eq (vec_extractl (source_a
, source_b
, 16), result_2
))
22 if (!vec_all_eq (vec_extractl (source_b
, source_a
, 8), result_3
))
24 if (!vec_all_eq (vec_extractl (source_b
, source_a
, 16), result_4
))
30 /* { dg-final { scan-assembler {\mvextddvrx\M} { target le } } } */
31 /* { dg-final { scan-assembler {\mvextddvlx\M} { target be } } } */