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