1 extern void abort (void);
2 
3 float32x4x2_t
test_vtrnqf32(float32x4_t _a,float32x4_t _b)4 test_vtrnqf32 (float32x4_t _a, float32x4_t _b)
5 {
6   return vtrnq_f32 (_a, _b);
7 }
8 
9 int
main(int argc,char ** argv)10 main (int argc, char **argv)
11 {
12   int i;
13   float32_t first[] = {1, 2, 3, 4};
14   float32_t second[] = {5, 6, 7, 8};
15   float32x4x2_t result = test_vtrnqf32 (vld1q_f32 (first), vld1q_f32 (second));
16   float32x4_t res1 = result.val[0], res2 = result.val[1];
17   float32_t exp1[] = {1, 5, 3, 7};
18   float32_t exp2[] = {2, 6, 4, 8};
19   float32x4_t expected1 = vld1q_f32 (exp1);
20   float32x4_t expected2 = vld1q_f32 (exp2);
21 
22   for (i = 0; i < 4; i++)
23     if ((res1[i] != expected1[i]) || (res2[i] != expected2[i]))
24       abort ();
25 
26   return 0;
27 }
28