Rebase.
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / simd / ext_f64_1.c
blob42389aaaa76b6af2d4c730b7b78ea055163bb44d
1 /* Test the `vextf64' AArch64 SIMD intrinsic. */
3 /* { dg-do run } */
4 /* { dg-options "-save-temps -O3 -fno-inline" } */
6 #include "arm_neon.h"
8 extern void abort (void);
10 int
11 main (int argc, char **argv)
13 int i, off;
14 float64x1_t in1 = {0};
15 float64x1_t in2 = {1};
16 float64x1_t actual = vext_f64 (in1, in2, 0);
17 if (actual[0] != in1[0])
18 abort ();
20 return 0;
23 /* Do not scan-assembler. An EXT instruction could be emitted, but would merely
24 return its first argument, so it is legitimate to optimize it out. */
25 /* { dg-final { cleanup-saved-temps } } */