(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
msp430/
special-regs.c
       1  /* { dg-do compile } */
       2  
       3  int foo (void)
       4  {
       5    register int pc __asm__("R0");
       6    register int sp __asm__("R1");
       7    register int cg1 __asm__("R2"); /* { dg-error "the register specified for 'cg1' is not general enough" } */
       8    register int cg2 __asm__("R3"); /* { dg-error "the register specified for 'cg2' is not general enough" } */
       9  
      10    __asm__("" : "=r"(pc));
      11    __asm__("" : "=r"(sp));
      12    __asm__("" : "=r"(cg1));
      13    __asm__("" : "=r"(cg2));
      14  
      15    return pc + sp + cg1 + cg2;
      16  }