From: pbrook Date: Fri, 11 Jun 2010 16:55:42 +0000 (+0000) Subject: 2010-06-11 Paul Brook X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dab3b01f00791cf352db111d66dd7af59a926d9b;p=thirdparty%2Fgcc.git 2010-06-11 Paul Brook gcc/testsuite/ * g++.dg/other/arm-neon-1.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160623 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index aeda5b9399da..7454d8b477a8 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 000000000000..33cc04b69dc6 --- /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); +}