From: Andreas Zwinkau Date: Tue, 2 Sep 2008 10:41:14 +0000 (+0000) Subject: New test cases for Mux and ia32_Test X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=d294fe7d32ae168100eb622a1675e9d1ad0f4616;p=libfirm New test cases for Mux and ia32_Test [r21641] --- diff --git a/ir/be/test/fehler144.c b/ir/be/test/fehler144.c new file mode 100644 index 000000000..c12d08b22 --- /dev/null +++ b/ir/be/test/fehler144.c @@ -0,0 +1,7 @@ +int x=42,y=42; + +int main(void) { + int ret = x & y ? 0:1; + printf("%d\n", ret); + return ret; +} diff --git a/ir/be/test/mux.c b/ir/be/test/mux.c new file mode 100644 index 000000000..736f4cdac --- /dev/null +++ b/ir/be/test/mux.c @@ -0,0 +1,12 @@ + +int f(int a, int b) { + return a && b ? 11 : 42; +} + +int x = 2, y = 3; + +int main(void) { + int ret = 23 < f(x,y); + printf("%d\n", ret); + return ret; +}