repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
other
/
arm-neon-1.C
blob
33cc04b69dc6a1fbbdf3daf4bfe8d345bdfa9c55
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
}