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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [powerpc/] [paired-10.c] - Rev 816

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 out[2] __attribute__ ((aligned (8)));
void
test_api (float y, float x)
{
  vector float c = {x, y};
  vector float b = {0.0, 8.0};
  vector float a;
 
  a = paired_sub (b, c);
  paired_stx (a, 0, out);
}
 
 
int main ()
{
  test_api (6, 7);
  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.