OSDN Git Service

2010-06-11 Paul Brook <paul@codesourcery.com>
authorpbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 11 Jun 2010 16:55:42 +0000 (16:55 +0000)
committerpbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 11 Jun 2010 16:55:42 +0000 (16:55 +0000)
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

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/arm-neon-1.C [new file with mode: 0644]

index aeda5b9..7454d8b 100644 (file)
@@ -1,3 +1,7 @@
+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
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 (file)
index 0000000..33cc04b
--- /dev/null
@@ -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);
+}