URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 297 |
Rev 384 |
/* Copyright (C) 2000 Free Software Foundation */
|
/* Copyright (C) 2000 Free Software Foundation */
|
/* Contributed by Alexandre Oliva <aoliva@redhat.com> */
|
/* Contributed by Alexandre Oliva <aoliva@redhat.com> */
|
|
|
int
|
int
|
foo ()
|
foo ()
|
{
|
{
|
while (1)
|
while (1)
|
{
|
{
|
int a;
|
int a;
|
char b;
|
char b;
|
/* gcse should not merge these asm statements, since their
|
/* gcse should not merge these asm statements, since their
|
output operands have different modes. */
|
output operands have different modes. */
|
__asm__("":"=r" (a)); __asm__("":"=r" (b));
|
__asm__("":"=r" (a)); __asm__("":"=r" (b));
|
if (b)
|
if (b)
|
return a;
|
return a;
|
}
|
}
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.