Rebase.
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / simd / vuzpf32.x
blob86c3700e522251b9a11f52911b9b2d1f14fab298
1 extern void abort (void);
3 float32x2x2_t
4 test_vuzpf32 (float32x2_t _a, float32x2_t _b)
6   return vuzp_f32 (_a, _b);
9 int
10 main (int argc, char **argv)
12   int i;
13   float32_t first[] = {1, 2};
14   float32_t second[] = {3, 4};
15   float32x2x2_t result = test_vuzpf32 (vld1_f32 (first), vld1_f32 (second));
16   float32_t exp1[] = {1, 3};
17   float32_t exp2[] = {2, 4};
18   float32x2_t expect1 = vld1_f32 (exp1);
19   float32x2_t expect2 = vld1_f32 (exp2);
21   for (i = 0; i < 2; i++)
22     if ((result.val[0][i] != expect1[i]) || (result.val[1][i] != expect2[i]))
23       abort ();
25   return 0;