aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/arm/neon-vdup-12.c
blob: 27b4186820718560234660a4eb0e9b5a3d364a33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* Test the optimization of `vdupq_n_u16' 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>

uint16x8_t out_uint16x8_t;
void test_vdupq_nu16 (void)
{
  out_uint16x8_t = vdupq_n_u16 (0x1200);
}

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