projects
/
libfirm
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fixed register allocation for fp != sp
[libfirm]
/
ir
/
be
/
test
/
GlobalCseTest.c
1
//
2
// GCC-firm Project
3
//
4
// $Id$
5
//
6
// Testprogram to test GCC-firm : GlobalCseTest.c
7
8
int m(int a) {
9
int b;
10
if ( a == 1) {
11
/* Global cse should move the Subtraction before or after this if. */
12
if( a == 0) b = a - 2; else b = a - 2;
13
} else {
14
b = 4;
15
}
16
return b;
17
18
}
19
20
int main (int argc, char *argv[]) {
21
printf("GlobalCseTest.c\n");
22
23
m(4);
24
25
return 0;
26
}