OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [powerpc/] [paired-9.c] - Blame information for rev 322

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 322 jeremybenn
/* { dg-do compile { target { powerpc-*-linux*paired* && ilp32 } } } */
2
/* { dg-options "-mpaired -ffinite-math-only " } */
3
 
4
/* Test PowerPC PAIRED extensions.  */
5
 
6
#include <paired.h>
7
 
8
static float out[2] __attribute__ ((aligned (8)));
9
void
10
test_api (float y, float x)
11
{
12
  vector float c = {x, 7.0};
13
  vector float b = {0.0, 8.0};
14
  vector float a;
15
 
16
  a = paired_sub (b, c);
17
  paired_stx (a, 0, out);
18
}
19
 
20
 
21
int main ()
22
{
23
  test_api (6, 7);
24
  return (0);
25
}

powered by: WebSVN 2.1.0

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