projects
/
libfirm
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
changed spill costs for reloads
[libfirm]
/
ir
/
be
/
test
/
trivial_sum_upto.c
1
2
/*
3
* A simple loop
4
* Shows backendges.
5
*/
6
int sum_upto(int n)
7
{
8
int i, res = 0;
9
10
for(i = 0; i < n; ++i)
11
res += i;
12
13
return res;
14
}
15
16
int main(int argc, char *argv[])
17
{
18
printf("%d\n", sum_upto(42));
19
return 0;
20
}