blob: f9e6a72aecaf80c400d8e22c3cb0d74612102441 (
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.125);
}
/* { dg-final { scan-assembler "vmov\.f32\[ \]+\[qQ\]\[0-9\]+, #1\.25e-1\(\[ \]+@\[a-zA-Z0-9 \]+\)?\n" } } */
/* { dg-final { cleanup-saved-temps } } */
|