New test cases for Mux and ia32_Test
authorAndreas Zwinkau <zwinkau@kit.edu>
Tue, 2 Sep 2008 10:41:14 +0000 (10:41 +0000)
committerAndreas Zwinkau <zwinkau@kit.edu>
Tue, 2 Sep 2008 10:41:14 +0000 (10:41 +0000)
[r21641]

ir/be/test/fehler144.c [new file with mode: 0644]
ir/be/test/mux.c [new file with mode: 0644]

diff --git a/ir/be/test/fehler144.c b/ir/be/test/fehler144.c
new file mode 100644 (file)
index 0000000..c12d08b
--- /dev/null
@@ -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 (file)
index 0000000..736f4cd
--- /dev/null
@@ -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;
+}