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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [ssa-fre-32.c] - Blame information for rev 749

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O -fdump-tree-fre1-details" } */
3
 
4
_Complex float
5
foo (_Complex float x)
6
{
7
  float r = __real x;
8
  float i = __imag x;
9
  _Complex float z;
10
  __real z = r;
11
  __imag z = i;
12
  return z;
13
}
14
 
15
_Complex float
16
bar (_Complex float x)
17
{
18
  float r = __real x;
19
  float i = __imag x;
20
  _Complex float z = x;
21
  __real z = r;
22
  __imag z = i;
23
  return z;
24
}
25
 
26
/* We should CSE all the way to replace the final assignment to z with x.  */
27
/* { dg-final { scan-tree-dump-times "with x_1\\\(D\\\) in z" 3 "fre1" } } */
28
/* { dg-final { cleanup-tree-dump "fre1" } } */

powered by: WebSVN 2.1.0

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