URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
/* PR middle-end/12210 */
|
/* PR middle-end/12210 */
|
/* Origin: Ossadchy Yury A. <waspcoder@mail.ru> */
|
/* Origin: Ossadchy Yury A. <waspcoder@mail.ru> */
|
|
|
/* This used to fail on i686 because the argument was not copied
|
/* This used to fail on i686 because the argument was not copied
|
to the right location by __builtin_apply after the direct call. */
|
to the right location by __builtin_apply after the direct call. */
|
|
|
/* { dg-do run } */
|
/* { dg-do run } */
|
|
|
|
|
#define INTEGER_ARG 5
|
#define INTEGER_ARG 5
|
|
|
extern void abort(void);
|
extern void abort(void);
|
|
|
void foo(int arg)
|
void foo(int arg)
|
{
|
{
|
if (arg != INTEGER_ARG)
|
if (arg != INTEGER_ARG)
|
abort();
|
abort();
|
}
|
}
|
|
|
void bar(int arg)
|
void bar(int arg)
|
{
|
{
|
foo(arg);
|
foo(arg);
|
__builtin_apply(foo, __builtin_apply_args(), 16);
|
__builtin_apply(foo, __builtin_apply_args(), 16);
|
}
|
}
|
|
|
int main(void)
|
int main(void)
|
{
|
{
|
bar(INTEGER_ARG);
|
bar(INTEGER_ARG);
|
|
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.