simd.exp: Skip all tests if no arm_neon_ok effective target support.
[gcc.git] / gcc / testsuite / gcc.target / arm / simd / vextu64_1.c
1 /* Test the `vextu64' ARM Neon intrinsic. */
2
3 /* { dg-options "-save-temps -O3 -fno-inline" } */
4 /* { dg-add-options arm_neon } */
5
6 #include "arm_neon.h"
7
8 extern void abort (void);
9
10 int
11 main (int argc, char **argv)
12 {
13 uint64_t arr1[] = {0};
14 uint64x1_t in1 = vld1_u64 (arr1);
15 uint64_t arr2[] = {1};
16 uint64x1_t in2 = vld1_u64 (arr2);
17 uint64x1_t actual = vext_u64 (in1, in2, 0);
18 if (actual != in1)
19 abort ();
20
21 return 0;
22 }
23
24 /* Don't scan assembler for vext - it can be optimized into a move from r0. */
25 /* { dg-final { cleanup-saved-temps } } */