1 extern void abort (void);
2
3 uint16x4x2_t
test_vuzpu16(uint16x4_t _a,uint16x4_t _b)4 test_vuzpu16 (uint16x4_t _a, uint16x4_t _b)
5 {
6 return vuzp_u16 (_a, _b);
7 }
8
9 int
main(int argc,char ** argv)10 main (int argc, char **argv)
11 {
12 int i;
13 uint16_t first[] = {1, 2, 3, 4};
14 uint16_t second[] = {5, 6, 7, 8};
15 uint16x4x2_t result = test_vuzpu16 (vld1_u16 (first), vld1_u16 (second));
16 uint16_t exp1[] = {1, 3, 5, 7};
17 uint16_t exp2[] = {2, 4, 6, 8};
18 uint16x4_t expect1 = vld1_u16 (exp1);
19 uint16x4_t expect2 = vld1_u16 (exp2);
20
21 for (i = 0; i < 4; i++)
22 if ((result.val[0][i] != expect1[i]) || (result.val[1][i] != expect2[i]))
23 abort ();
24
25 return 0;
26 }
27