URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
689 |
jeremybenn |
/* { dg-do compile } */
|
2 |
|
|
/* { dg-options "-fno-signed-zeros -ffinite-math-only -fdump-tree-gimple" } */
|
3 |
|
|
|
4 |
|
|
_Complex double test1 (double x) { return x + 1.i; }
|
5 |
|
|
_Complex double test2 (double x) { return 1 + x * 1.i; }
|
6 |
|
|
_Complex double test3 (double x, double y) { return x + y * 1.i; }
|
7 |
|
|
_Complex double test4 (double x, double y) { return (x + y * 1.i) * 1.i; }
|
8 |
|
|
_Complex double test5 (double x, double y) { return (x + y * 1.i) * -1.i; }
|
9 |
|
|
|
10 |
|
|
/* { dg-final { scan-tree-dump "COMPLEX_EXPR <x, 1.0e\\+0>" "gimple" } } */
|
11 |
|
|
/* { dg-final { scan-tree-dump "COMPLEX_EXPR <1.0e\\+0, x>" "gimple" } } */
|
12 |
|
|
/* { dg-final { scan-tree-dump "COMPLEX_EXPR <x, y>" "gimple" } } */
|
13 |
|
|
/* { dg-final { scan-tree-dump "D.* = -y;\n.*COMPLEX_EXPR <D.*, x>" "gimple" } } */
|
14 |
|
|
/* { dg-final { scan-tree-dump "D.* = -x;\n.*COMPLEX_EXPR <y, D.*>" "gimple" } } */
|
15 |
|
|
/* { dg-final { cleanup-tree-dump "gimple" } } */
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.