MAINTAINERS: add myself to write after approval
[official-gcc.git] / gcc / testsuite / gcc.target / arc / interrupt-7.c
blob547dfd380bb80a2d867170f1a1670fa96542cc69
1 /* { dg-do compile } */
2 /* { dg-skip-if "Not available for ARCv1" { arc700 || arc6xx } } */
3 /* { dg-options "-O2 -mirq-ctrl-saved=r0-r17,blink" } */
5 /* Check if the registers R0-R17,blink are automatically saved. */
7 void __attribute__ ((interrupt("ilink")))
8 foo(void)
10 __asm__ volatile ( "" : : : "r13","r14","r15","r16");
12 /* { dg-final { scan-assembler-not "st.*r13,\\\[sp" } } */
13 /* { dg-final { scan-assembler-not "st.*r14,\\\[sp" } } */
14 /* { dg-final { scan-assembler-not "st.*r15,\\\[sp" } } */
15 /* { dg-final { scan-assembler-not "st.*r16,\\\[sp" } } */
16 /* { dg-final { scan-assembler-not "push_s blink" } } */