Commit 1021b0e5 by Paul Brook Committed by Paul Brook

arm-neon-1.C: New test.

2010-06-11  Paul Brook  <paul@codesourcery.com>
 
	gcc/testsuite/
	* g++.dg/other/arm-neon-1.C: New test.

From-SVN: r160623
parent 92bb7768
2010-06-11 Paul Brook <paul@codesourcery.com>
* g++.dg/other/arm-neon-1.C: New test.
2010-06-11 Paul Thomas <pault@gcc.gnu.org>
PR fortran/42051
......
/* Basic smoke test for arm_neon.h */
/* { dg-do assemble } */
/* { dg-require-effective-target arm_neon_ok } */
/* { dg-add-options arm_neon } */
#include "arm_neon.h"
float a[4];
void test(void)
{
float32x2x2_t v;
float32x2_t res;
v = vld2_f32(a);
res = vadd_f32(v.val[0], v.val[1]);
vst1_f32(a, res);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment