projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
7167b92
)
cmov AM test added
author
Matthias Braun
<matze@braunis.de>
Mon, 1 Oct 2007 11:19:05 +0000
(11:19 +0000)
committer
Matthias Braun
<matze@braunis.de>
Mon, 1 Oct 2007 11:19:05 +0000
(11:19 +0000)
[r16019]
ir/be/test/if.c
patch
|
blob
|
history
diff --git
a/ir/be/test/if.c
b/ir/be/test/if.c
index
3d16d57
..
5e8ae89
100644
(file)
--- a/
ir/be/test/if.c
+++ b/
ir/be/test/if.c
@@
-66,6
+66,14
@@
int test9(int a, int b)
return a ? b : b;
}
+int testam(int a, int b, int c)
+{
+ if(a < 42)
+ return b;
+ else
+ return c;
+}
+
int main()
{
#define TU(t,a,s) printf("%s(%d) = %d (should be %d)\n", \
@@
-127,6
+135,9
@@
int main()
TT(test8, 0, 2, -1, -1);
TT(test8, 24, 123, 7, 7);
+ TT(testam, -24, 13, 7, 13);
+ TT(testam, 102, 13, 7, 7);
+
TB(test9, 3, 2, 2);
TB(test9, -42, -42, -42);