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.2.2/] [gcc/] [testsuite/] [gcc.dg/] [compat/] [union-check.h] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* Function definitions that are used by multiple tests.  */
2
 
3
#define CHECK_CHAR(TYPE)                \
4
  void check##TYPE (TYPE p, int i)      \
5
   { if (p.c != (char)i) DEBUG_CHECK }
6
 
7
CHECK_CHAR(Ucs)
8
CHECK_CHAR(Uci)
9
CHECK_CHAR(Ucl)
10
CHECK_CHAR(Ucll)
11
 
12
 
13
#define CHECK_SHORT(TYPE)               \
14
  void check##TYPE (TYPE p, int i)      \
15
   { if (p.s != (short)i) DEBUG_CHECK }
16
 
17
CHECK_SHORT(Usi)
18
CHECK_SHORT(Usl)
19
CHECK_SHORT(Usll)
20
 
21
 
22
#define CHECK_INT(TYPE)                 \
23
  void check##TYPE (TYPE p, int i)      \
24
   { if (p.i != i) DEBUG_CHECK }
25
 
26
CHECK_INT(Uil)
27
CHECK_INT(Uill)
28
 
29
 
30
#define CHECK_LONG(TYPE)                \
31
  void check##TYPE (TYPE p, int i)      \
32
   { if (p.l != (long)i) DEBUG_CHECK }
33
 
34
CHECK_LONG(Ulll)

powered by: WebSVN 2.1.0

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