Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.target / arc / interrupt-6.c
blob509ff3021248e8207e55b42c0170fd3e53aea66a
1 /* { dg-do compile } */
2 /* { dg-skip-if "Not available for ARCv1" { arc700 || arc6xx } } */
3 /* { dg-options "-O2 -mirq-ctrl-saved=r0-ilink" } */
5 #include <alloca.h>
7 /* Check if ilink is recognized. Check how FP and BLINK are saved.
8 BLINK is saved last on the stack because the IRQ autosave will do
9 first r0-ilink. To avoid this ABI exception, one needs to autosave
10 always blink when using the IRQ autosave feature. */
12 extern int bar (void *);
14 void __attribute__ ((interrupt("ilink")))
15 foo(void)
17 int *p = alloca (10);
18 bar (p);
20 /* { dg-final { scan-assembler-not ".*fp,\\\[sp" } } */
21 /* { dg-final { scan-assembler "ld.*blink,\\\[sp\\\]" } } */
22 /* { dg-final { scan-assembler "push_s.*blink" } } */