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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [powerpc/] [paired-1.c] - Rev 324

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

/* { dg-do compile { target { powerpc-*-linux*paired* && ilp32} } } */
/* { dg-options "-mpaired -ffinite-math-only " } */
 
/* Test PowerPC PAIRED extensions.  */
 
#include <paired.h>
 
static float in1[2] __attribute__ ((aligned (8))) =
{6.0, 7.0};
static float in2[2] __attribute__ ((aligned (8))) =
{4.0, 3.0};
 
static float out[2] __attribute__ ((aligned (8)));
 
vector float a, b, c, d;
void
test_api ()
{
  b = paired_lx (0, in1);
  c = paired_lx (0, in2);
 
  a = paired_sub (b, c);
 
  paired_stx (a, 0, out);
}
 
int
main ()
{
  test_api ();
  return (0);
}
 
 

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

powered by: WebSVN 2.1.0

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