summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/microblaze/others/interrupt_handler_leaf.c
blob: 9d068d05e073e56f82cd621cc40905ff8d97b534 (plain)
1
2
3
4
5
6
7
8
9
10
int leaf_func () __attribute__ ((interrupt_handler));
volatile int intr_occurred;

int leaf_func ()
{

  /* { dg-final { scan-assembler "rtid\tr(\[0-9]\|\[1-2]\[0-9]\|3\[0-1]),0" } } */
  /* { dg-final { scan-assembler-not "rtsd" } } */    
    intr_occurred += 1;
}