gcc/testsuite/gcc.target/aarch64/simd/vrev64p16.x
raw| 1 | extern void abort (void); |
| 2 | |
| 3 | poly16x4_t |
| 4 | test_vrev64p16 (poly16x4_t _arg) |
| 5 | { |
| 6 | return vrev64_p16 (_arg); |
| 7 | } |
| 8 | |
| 9 | int |
| 10 | main (int argc, char **argv) |
| 11 | { |
| 12 | int i; |
| 13 | poly16x4_t inorder = {1, 2, 3, 4}; |
| 14 | poly16x4_t reversed = test_vrev64p16 (inorder); |
| 15 | poly16x4_t expected = {4, 3, 2, 1}; |
| 16 | |
| 17 | for (i = 0; i < 4; i++) |
| 18 | if (reversed[i] != expected[i]) |
| 19 | abort (); |
| 20 | return 0; |
| 21 | } |
| 22 |