2018-02-09 Sebastian Perta <sebastian.perta@renesas.com>
[official-gcc.git] / gcc / testsuite / gcc.target / arm / neon-vdup-1.c
blob1fe7af49330fead43189f1f1256628589271ef1a
1 /* Test the optimization of `vdupq_n_f32' ARM Neon intrinsic. */
3 /* { dg-do compile } */
4 /* { dg-require-effective-target arm_neon_ok } */
5 /* { dg-options "-O2" } */
6 /* { dg-add-options arm_neon } */
8 #include <arm_neon.h>
10 float32x4_t out_float32x4_t;
11 void test_vdupq_nf32 (void)
13 out_float32x4_t = vdupq_n_f32 (0.0);
16 /* { dg-final { scan-assembler "vmov\.f32\[ \]+\[qQ\]\[0-9\]+, #0\.0\(\[ \]+@\[a-zA-Z0-9 \]+\)?\n" } } */