projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
646178f
)
simplify testcase
author
Matthias Braun
<matze@braunis.de>
Sun, 30 Mar 2008 12:57:12 +0000
(12:57 +0000)
committer
Matthias Braun
<matze@braunis.de>
Sun, 30 Mar 2008 12:57:12 +0000
(12:57 +0000)
[r18286]
ir/be/test/fib.c
patch
|
blob
|
history
diff --git
a/ir/be/test/fib.c
b/ir/be/test/fib.c
index
de904ee
..
6b5e480
100644
(file)
--- a/
ir/be/test/fib.c
+++ b/
ir/be/test/fib.c
@@
-1,29
+1,14
@@
#include <stdio.h>
-//#define COUNT_BRANCHES
-
-#ifdef COUNT_BRANCHES
-int b1, b2, b3;
-#endif
-
unsigned fib(unsigned n)
{
if(n == 0) {
-#ifdef COUNT_BRANCHES
- b1++;
-#endif
return 0;
}
if(n == 1) {
-#ifdef COUNT_BRANCHES
- b2++;
-#endif
return 1;
}
-#ifdef COUNT_BRANCHES
- b3++;
-#endif
return fib(n-1) + fib(n-2);
}