From f8a2b685693da858f479e7f073746f106fbd97ac Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Mon, 1 Oct 2007 11:19:05 +0000 Subject: [PATCH] cmov AM test added [r16019] --- ir/be/test/if.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ir/be/test/if.c b/ir/be/test/if.c index 3d16d574d..5e8ae89f1 100644 --- 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); -- 2.20.1