URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 384 |
// { dg-do assemble { target sparc-sun-* } }
|
// { dg-do assemble { target sparc-sun-* } }
|
// { dg-options "-S" }
|
// { dg-options "-S" }
|
// GROUPS passed asm-extension
|
// GROUPS passed asm-extension
|
// This used to crash because c_expand_asm_keyword didn't know what to
|
// This used to crash because c_expand_asm_keyword didn't know what to
|
// do with this. The parser rules were changed to accept an expr, instead
|
// do with this. The parser rules were changed to accept an expr, instead
|
// of a stmt.
|
// of a stmt.
|
|
|
extern void traptable(void);
|
extern void traptable(void);
|
|
|
main()
|
main()
|
{
|
{
|
asm("wr %0,%%tbr" : : "r" (traptable));
|
asm("wr %0,%%tbr" : : "r" (traptable));
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.