Handle T_HRESULT types in CodeView records
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / vec-extractl-6.c
blobf4b8b627a5f33b1fba2f42ebf9928501a3d5abf9
1 /* { dg-options "-mdejagnu-cpu=power10" } */
3 #include <altivec.h>
5 extern void abort (void);
7 int
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))
19 abort ();
20 if (!vec_all_eq (vec_extractl (source_a, source_b, 16), result_2))
21 abort ();
22 if (!vec_all_eq (vec_extractl (source_b, source_a, 8), result_3))
23 abort ();
24 if (!vec_all_eq (vec_extractl (source_b, source_a, 16), result_4))
25 abort ();
27 return 0;
30 /* { dg-final { scan-assembler {\mvextddvrx\M} { target le } } } */
31 /* { dg-final { scan-assembler {\mvextddvlx\M} { target be } } } */