1 /* Test the `vexts64' AArch64 SIMD intrinsic.  */
2 
3 /* { dg-do run } */
4 /* { dg-options "-save-temps -O3 -fno-inline" } */
5 
6 #include "arm_neon.h"
7 
8 extern void abort (void);
9 
10 int
main(int argc,char ** argv)11 main (int argc, char **argv)
12 {
13   int64_t arr1[] = {0};
14   int64x1_t in1 = vld1_s64 (arr1);
15   int64_t arr2[] = {1};
16   int64x1_t in2 = vld1_s64 (arr2);
17   int64x1_t actual = vext_s64 (in1, in2, 0);
18   if (actual[0] != in1[0])
19     abort ();
20 
21   return 0;
22 }
23 
24 /* Do not scan-assembler.  An EXT instruction could be emitted, but would merely
25    return its first argument, so it is legitimate to optimize it out.  */
26