Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/pr119046.c

raw
1 /* { dg-do compile } */
2 /* { dg-additional-options "-O2" } */
3
4 #include <arm_neon.h>
5
6 float32x4_t madd_helper_1(float32x4_t a, float32x4_t b, float32x4_t d)
7 {
8 float32x4_t t = a;
9 t = vfmaq_f32 (t, vdupq_n_f32(vgetq_lane_f32 (b, 1)), d);
10 t = vfmaq_f32 (t, vdupq_n_f32(vgetq_lane_f32 (b, 1)), d);
11 return t;
12 }
13
14 /* { dg-final { scan-assembler-not {\tdup\tv[0-9]+\.4s, v[0-9]+.s\[1\]\n} } } */
15 /* { dg-final { scan-assembler-times {\tfmla\tv[0-9]+\.4s, v[0-9]+\.4s, v[0-9]+\.s\[1\]\n} 2 } } */
16