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 149 |
Rev 154 |
/* PR inline-asm/8788 */
|
/* PR inline-asm/8788 */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O2" } */
|
/* { dg-options "-O2" } */
|
|
|
typedef struct {
|
typedef struct {
|
long x[6];
|
long x[6];
|
} myjmp_buf;
|
} myjmp_buf;
|
|
|
typedef struct {
|
typedef struct {
|
myjmp_buf regs;
|
myjmp_buf regs;
|
} my_stack;
|
} my_stack;
|
|
|
void switch_to_stack (my_stack *stack){
|
void switch_to_stack (my_stack *stack){
|
asm ( /* { dg-error "impossible constraint" } */
|
asm ( /* { dg-error "impossible constraint" } */
|
/* { dg-warning "asm operand 1" "asm operand 1" { target *-*-* } 14 } */
|
/* { dg-warning "asm operand 1" "asm operand 1" { target *-*-* } 14 } */
|
"\n"
|
"\n"
|
: "+r" (stack->regs)
|
: "+r" (stack->regs)
|
);
|
);
|
}
|
}
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.