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

uint32x4_t out_uint32x4_t;
void test_vdupq_nu32 (void)
{
  out_uint32x4_t = vdupq_n_u32 (~0x12);
}

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