URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
/* { dg-do run } */
|
/* { dg-do run } */
|
/* m32c is already packed. */
|
/* m32c is already packed. */
|
/* { dg-skip-if "" { "m32c-*-*" } { "*" } { "" } } */
|
/* { dg-skip-if "" { "m32c-*-*" } { "*" } { "" } } */
|
|
|
void *memcpy(void *dest, const void *src, __SIZE_TYPE__ n);
|
void *memcpy(void *dest, const void *src, __SIZE_TYPE__ n);
|
|
|
struct timeval {
|
struct timeval {
|
long tv_sec;
|
long tv_sec;
|
};
|
};
|
|
|
struct outdata {
|
struct outdata {
|
long align;
|
long align;
|
char seq;
|
char seq;
|
struct timeval tv __attribute__((packed));
|
struct timeval tv __attribute__((packed));
|
};
|
};
|
|
|
void send_probe(struct outdata *outdata, struct timeval *tp) __attribute__((noinline));
|
void send_probe(struct outdata *outdata, struct timeval *tp) __attribute__((noinline));
|
void send_probe(struct outdata *outdata, struct timeval *tp)
|
void send_probe(struct outdata *outdata, struct timeval *tp)
|
{
|
{
|
memcpy(&outdata->tv, tp, sizeof outdata->tv);
|
memcpy(&outdata->tv, tp, sizeof outdata->tv);
|
}
|
}
|
|
|
struct timeval t;
|
struct timeval t;
|
struct outdata outdata;
|
struct outdata outdata;
|
|
|
int main()
|
int main()
|
{
|
{
|
send_probe(&outdata, &t);
|
send_probe(&outdata, &t);
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.