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/] [vector-setup.h] - Rev 154

Compare with Previous | Blame | View Log

#define SETUP(NUM,TMODE)				\
v##NUM##TMODE g_v##NUM##TMODE;				\
TMODE g_##TMODE;					\
							\
extern void test_v##NUM##TMODE (void);			\
extern void checkp_##NUM##TMODE (TMODE *);		\
							\
void							\
pass_v##NUM##TMODE (v##NUM##TMODE v)			\
{							\
  u##NUM##TMODE u;					\
  int j;						\
  TMODE a[NUM];						\
  							\
  u.v = v;						\
  for (j = 0; j < NUM; j++)				\
    a[j] = u.a[j];					\
  checkp_##NUM##TMODE (a);				\
}							\
							\
v##NUM##TMODE						\
return_v##NUM##TMODE (void)				\
{							\
  return g_v##NUM##TMODE;				\
}
 
#define CHECK(NUM,TMODE)				\
  test_v##NUM##TMODE()
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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