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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [c-c++-common/] [dfp/] [pr35620.c] - Blame information for rev 700

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

Line No. Rev Author Line
1 686 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2" } */
3
 
4
#ifdef __cplusplus
5
typedef float _Decimal32 __attribute__((mode(SD)));
6
#endif
7
 
8
extern void foo (_Decimal32);
9
_Decimal32 *p;
10
 
11
extern int i;
12
union U { _Decimal32 a; int b; } u;
13
 
14
void
15
blatz (void)
16
{
17
  _Decimal32 d;
18
  u.b = i;
19
  d = u.a;
20
  foo (d);
21
}
22
 
23
void
24
bar (void)
25
{
26
  foo (*p);
27
}

powered by: WebSVN 2.1.0

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