Debian Codegraph @

gcc/testsuite/g++.dg/other/arm-neon-1.C

raw
1 /* Basic smoke test for arm_neon.h */
2
3 /* { dg-do assemble } */
4 /* { dg-require-effective-target arm_neon_ok } */
5 /* { dg-add-options arm_neon } */
6
7 #include "arm_neon.h"
8
9 float a[4];
10
11 void test(void)
12 {
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);
18 }