From: Paul Brook Date: Fri, 11 Jun 2010 16:55:42 +0000 (+0000) Subject: arm-neon-1.C: New test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1021b0e570cd0a324d15d117eaaa5dd60e4848f0;p=gcc.git arm-neon-1.C: New test. 2010-06-11 Paul Brook gcc/testsuite/ * g++.dg/other/arm-neon-1.C: New test. From-SVN: r160623 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index aeda5b9399d..7454d8b477a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2010-06-11 Paul Brook + + * g++.dg/other/arm-neon-1.C: New test. + 2010-06-11 Paul Thomas PR fortran/42051 diff --git a/gcc/testsuite/g++.dg/other/arm-neon-1.C b/gcc/testsuite/g++.dg/other/arm-neon-1.C new file mode 100644 index 00000000000..33cc04b69dc --- /dev/null +++ b/gcc/testsuite/g++.dg/other/arm-neon-1.C @@ -0,0 +1,18 @@ +/* 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); +}