Add execution + assembler tests of AArch64 REV Neon Intrinsics.
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / simd / vrev64p8.x
blob6d32ecc17e9f197000c6915e683e3df78100053c
1 extern void abort (void);
3 poly8x8_t
4 test_vrev64p8 (poly8x8_t _arg)
6   return vrev64_p8 (_arg);
9 int
10 main (int argc, char **argv)
12   int i;
13   poly8x8_t inorder = {1, 2, 3, 4, 5, 6, 7, 8};
14   poly8x8_t reversed = test_vrev64p8 (inorder);
15   poly8x8_t expected = {8, 7, 6, 5, 4, 3, 2, 1};
17   for (i = 0; i < 8; i++)
18     if (reversed[i] != expected[i])
19       abort ();
20   return 0;