Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / other / arm-neon-1.C
blob33cc04b69dc6a1fbbdf3daf4bfe8d345bdfa9c55
1 /* Basic smoke test for arm_neon.h */
3 /* { dg-do assemble } */
4 /* { dg-require-effective-target arm_neon_ok } */
5 /* { dg-add-options arm_neon } */
7 #include "arm_neon.h"
9 float a[4];
11 void test(void)
13   float32x2x2_t v;
14   float32x2_t res;
15   v = vld2_f32(a);
16   res = vadd_f32(v.val[0], v.val[1]);
17   vst1_f32(a, res);