1 extern void abort (void);
4 test_vtrnf32 (float32x2_t _a, float32x2_t _b)
6 return vtrn_f32 (_a, _b);
10 main (int argc, char **argv)
13 float32_t first[] = {1, 2};
14 float32_t second[] = {3, 4};
15 float32x2x2_t result = test_vtrnf32 (vld1_f32 (first), vld1_f32 (second));
16 float32x2_t res1 = result.val[0], res2 = result.val[1];
17 float32_t exp1[] = {1, 3};
18 float32_t exp2[] = {2, 4};
19 float32x2_t expected1 = vld1_f32 (exp1);
20 float32x2_t expected2 = vld1_f32 (exp2);
22 for (i = 0; i < 2; i++)
23 if ((res1[i] != expected1[i]) || (res2[i] != expected2[i]))