Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / interrupt-22.c
bloba51ba635414ca85ea258a24f9885373a9a190914
1 /* { dg-do compile { target ia32 } } */
2 /* { dg-options "-O2 -mgeneral-regs-only -mno-cld -miamcu -maccumulate-outgoing-args" } */
4 struct interrupt_frame;
6 void (*callback) (unsigned int id, unsigned int len)
7 __attribute__((no_caller_saved_registers));
8 unsigned int remaining;
10 void
11 __attribute__((no_caller_saved_registers))
12 handler(void)
14 while (1) {
15 if (remaining) {
16 callback(0, 0);
17 break;
22 void
23 __attribute__((interrupt))
24 my_isr(struct interrupt_frame *frame)
26 handler();
29 /* { dg-final { scan-assembler-times "\tcld" 1 } } */