OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [pr8788-1.c] - Rev 823

Go to most recent revision | Compare with Previous | Blame | View Log

/* PR inline-asm/8788 */
/* { dg-do compile } */
/* { dg-options "-O2" } */
 
typedef struct {
    long x[6];
} myjmp_buf;
 
typedef struct {
    myjmp_buf regs;
} my_stack;
 
void switch_to_stack (my_stack *stack){
    asm (  /* { dg-error "impossible constraint" } */
/* { dg-warning "asm operand 1" "asm operand 1" { target *-*-* } 14 } */
        "\n"
        : "+r" (stack->regs)
    );
}
 
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.