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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr42427.c] - Blame information for rev 696

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do assemble { target c99_runtime } } */
2
/* { dg-options "-O2 -fexceptions -fnon-call-exceptions -fpeel-loops" } */
3
/* { dg-add-options c99_runtime } */
4
/* { dg-require-effective-target ilp32 } */
5
 
6
#include <complex.h>
7
 
8
extern double myabs (complex double);
9
 
10
void
11
test (double *help, complex double *wm, long nz)
12
{
13
  long k;
14
  double znew;
15
  double zold;
16
  for (k = 0; k < nz; k++)
17
    {
18
      znew = myabs (wm[k]);
19
      zold = help[k];
20
      help[k] = znew;
21
    }
22
}

powered by: WebSVN 2.1.0

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