projects
/
libfirm
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Added getter for non address mode heuristic.
[libfirm]
/
ir
/
be
/
test
/
mulconst.c
1
/**
2
* check all kinds of multiplication with constants
3
*/
4
5
#define test_C(C) \
6
int test_##C(int i) { \
7
return i * C; \
8
}
9
#define test_N(C) \
10
int test_m##C(int i) { \
11
return i * -C; \
12
}
13
#include "mulconst.h"
14
#undef test_C
15
#undef test_N
16
17
#define test_C(C) printf("%d\n", test_##C(x));
18
#define test_N(C) printf("%d\n", test_m##C(x));
19
20
int x = 1;
21
22
int main() {
23
#include "mulconst.h"
24
return 0;
25
}