OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [compat/] [mixed-struct-check.h] - Blame information for rev 404

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

Line No. Rev Author Line
1 298 jeremybenn
/* Function definitions that are used by multiple tests.  */
2
 
3
void checkScd (Scd x, int i)
4
{ if (x.c != (char)i || x.d != (double)i+1) DEBUG_CHECK }
5
void checkScdc (Scdc x, int i)
6
{ if (x.c != (char)i || x.d != (double)i+1 || x.b != (char)i+2) DEBUG_CHECK }
7
void checkSd (Sd x, int i)
8
{ if (x.d != (double)i) DEBUG_CHECK }
9
void checkSdi (Sdi x, int i)
10
{ if (x.d != (double)i || x.i != i+1) DEBUG_CHECK }
11
void checkScsds (Scsds x, int i)
12
{ if (x.c != (char)i || x.sd.d != (double)i+1) DEBUG_CHECK }
13
void checkScsdsc (Scsdsc x, int i)
14
{ if (x.c != (char)i || x.sd.d != (double)i+1 || x.b != (char)i+2) DEBUG_CHECK }
15
void checkScsdis (Scsdis x, int i)
16
{ if (x.c != (char)i || x.sdi.d != (double)i+1 || x.sdi.i != i+2) DEBUG_CHECK }
17
void checkScsdisc (Scsdisc x, int i)
18
{ if (x.c != (char)i || x.sdi.d != (double)i+1 || x.sdi.i != i+2
19
    || x.b != (char)i+3) DEBUG_CHECK }
20
void checkSsds (Ssds x, int i)
21
{ if (x.sd.d != (double)i) DEBUG_CHECK }
22
void checkSsdsc (Ssdsc x, int i)
23
{ if (x.sd.d != (double)i || x.c != (char)i+1) DEBUG_CHECK }
24
void checkScssdss (Scssdss x, int i)
25
{ if (x.c != (char)i || x.ssds.sd.d != (double)i+1) DEBUG_CHECK }
26
void checkScssdssc (Scssdssc x, int i)
27
{ if (x.c != (char)i || x.ssds.sd.d != (double)i+1
28
    || x.b != (char)i+2) DEBUG_CHECK }
29
 
30
void checkSfi (Sfi x, int i)
31
{ if (x.f != (float)i || x.i != i+1) DEBUG_CHECK }
32
void checkSfii (Sfii x, int i)
33
{ if (x.f != (float)i || x.i1 != i+1 || x.i2 != i+2) DEBUG_CHECK }
34
void checkSfifi (Sfifi x, int i)
35
{ if (x.fi.f != (float)i || x.fi.i != i+1) DEBUG_CHECK }
36
void checkSfiifii (Sfiifii x, int i)
37
{ if (x.fii.f != (float)i || x.fii.i1 != i+1 || x.fii.i2 != i+2) DEBUG_CHECK }

powered by: WebSVN 2.1.0

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