aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/arm/neon-vdup-1.c
blob: 41799a25cf47138620bd7c28012c6762f6567216 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* Test the optimization of `vdupq_n_f32' ARM Neon intrinsic.  */

/* { dg-do compile } */
/* { dg-require-effective-target arm_neon_ok } */
/* { dg-options "-O2" } */
/* { dg-add-options arm_neon } */

#include <arm_neon.h>

float32x4_t out_float32x4_t;
void test_vdupq_nf32 (void)
{
  out_float32x4_t = vdupq_n_f32 (0.0);
}

/* { dg-final { scan-assembler "vmov\.f32\[ 	\]+\[qQ\]\[0-9\]+, #0\.0\(\[ \]+@\[a-zA-Z0-9 \]+\)?\n" } } */
/* { dg-final { cleanup-saved-temps } } */