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