OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [other/] [arm-neon-1.C] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
/* 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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.