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