1 /* Test the optimization of `vdupq_n_u32' ARM Neon intrinsic.  */
2 
3 /* { dg-do compile } */
4 /* { dg-require-effective-target arm_neon_ok } */
5 /* { dg-options "-O2" } */
6 /* { dg-add-options arm_neon } */
7 
8 #include <arm_neon.h>
9 
10 uint32x4_t out_uint32x4_t;
test_vdupq_nu32(void)11 void test_vdupq_nu32 (void)
12 {
13   out_uint32x4_t = vdupq_n_u32 (0x12);
14 }
15 
16 /* { dg-final { scan-assembler "vmov\.i32\[ 	\]+\[qQ\]\[0-9\]+, #18\(\[ \]+@\[a-zA-Z0-9 \]+\)?\n" } } */
17 /* { dg-final { cleanup-saved-temps } } */
18