- fixed memory leak: delete edges when a graph is deleted
[libfirm] / ir / be / test / codegen / spill_copymin.c
1 #include <stdio.h>
2
3 static void __attribute__((noinline)) f(void)
4 {
5         /* firm spiller will probably spill %ebp which will result in 2 additional
6          * copies; %ebx->%ebp before asm and %ebp->%ebx at the end */
7         unsigned eax = 0;
8         unsigned ebx;
9         unsigned ecx;
10         unsigned edx;
11
12         asm("cpuid" : "+a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx));
13
14         unsigned buf[] = { ebx, edx, ecx };
15         printf("%.12s\n", (char const*)buf);
16 }
17
18 int main(void)
19 {
20         f();
21         return 0;
22 }