Do not mark the transformed as visited. It makes no sense at all.
[libfirm] / ir / be / test / fehler156.c
1 /*$ -fomit-frame-pointer $*/
2
3 #include <stdio.h>
4
5
6 unsigned __attribute__((noinline)) get_sp(void)
7 {
8         unsigned esp;
9         asm("mov %%esp, %0": "=r" (esp));
10         return esp;
11 }
12
13
14 int main(void)
15 {
16 #ifndef __INTEL_COMPILER // ICC does not align the stack
17         unsigned sp = get_sp();
18         if (sp % 16 != 12) {
19                 printf("stack is unaligned after call: 0x%X\n", sp);
20                 return 1;
21         }
22 #endif
23         return 0;
24 }