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