From: Michael Beck Date: Wed, 22 Oct 2008 13:44:19 +0000 (+0000) Subject: example for the new commutative combo X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=3bc9e1abbc7c95d529a90932c72e4bae3961a30d;p=libfirm example for the new commutative combo [r23104] --- diff --git a/ir/be/test/combo_comm.c b/ir/be/test/combo_comm.c new file mode 100644 index 000000000..7571cc903 --- /dev/null +++ b/ir/be/test/combo_comm.c @@ -0,0 +1,19 @@ +/*$ -fcombo -fno-inline $*/ +int test(int a, int b) { + int c, d; + + c = a + b; + + if (0) + d = 0; + else + d = b; + + d = d + a; + + return c + d; +} + +int main(int argc, char *argv[]) { + return test(2,3) != 10; +}