Debian Codegraph @

gcc/testsuite/gcc.target/riscv/interrupt-2.c

raw
1 /* Verify that arg regs used as temporaries get saved. */
2 /* { dg-do compile } */
3 /* { dg-options "" } */
4 void __attribute__ ((interrupt))
5 foo2 (void)
6 {
7 extern volatile int INTERRUPT_FLAG;
8 INTERRUPT_FLAG = 0;
9
10 extern volatile int COUNTER;
11 COUNTER++;
12 }
13 /* { dg-final { scan-assembler-times "s\[wd\]\ta\[0-7\],\[0-9\]+\\(sp\\)" 2 } } */