(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
arc/
interrupt-6.c
       1  /* { dg-do compile } */
       2  /* { dg-skip-if "Not available for ARCv1" { arc700 || arc6xx } } */
       3  /* { dg-options "-O2 -mirq-ctrl-saved=r0-ilink" } */
       4  /* { dg-require-effective-target alloca } */
       5  
       6  /* Check if ilink is recognized. Check how FP and BLINK are saved.
       7     BLINK is saved last on the stack because the IRQ autosave will do
       8     first r0-ilink.  To avoid this ABI exception, one needs to autosave
       9     always blink when using the IRQ autosave feature.  */
      10  
      11  extern int bar (void *);
      12  
      13  void  __attribute__ ((interrupt("ilink")))
      14  foo(void)
      15  {
      16    int *p = __builtin_alloca (10);
      17    bar (p);
      18  }
      19  /* { dg-final { scan-assembler-not ".*fp,\\\[sp" } } */
      20  /* { dg-final { scan-assembler "pop_s.*blink" } } */
      21  /* { dg-final { scan-assembler "push_s.*blink" } } */