blob: a7ae9d00611c9bfc9af6b6c9c50bd23d51e968f9 [file] [log] [blame]
/* { dg-do compile } */
int foo (void)
{
register int pc __asm__("R0");
register int sp __asm__("R1");
register int cg1 __asm__("R2"); /* { dg-error "the register specified for 'cg1' is not general enough" } */
register int cg2 __asm__("R3"); /* { dg-error "the register specified for 'cg2' is not general enough" } */
__asm__("" : "=r"(pc));
__asm__("" : "=r"(sp));
__asm__("" : "=r"(cg1));
__asm__("" : "=r"(cg2));
return pc + sp + cg1 + cg2;
}