Rebase.
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / simd / vrev64qp16.x
blob5bce38c8aaf9636782edcf877ee74e79160f5e6d
1 extern void abort (void);
3 poly16x8_t
4 test_vrev64qp16 (poly16x8_t _arg)
6   return vrev64q_p16 (_arg);
9 int
10 main (int argc, char **argv)
12   int i;
13   poly16x8_t inorder = {1, 2, 3, 4, 5, 6, 7, 8};
14   poly16x8_t reversed = test_vrev64qp16 (inorder);
15   poly16x8_t expected = {4, 3, 2, 1, 8, 7, 6, 5};
17   for (i = 0; i < 8; i++)
18     if (reversed[i] != expected[i])
19       abort ();
20   return 0;