dded another if conversion test file; this on inlcude floating point psi as well
authorChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>
Fri, 5 May 2006 15:20:42 +0000 (15:20 +0000)
committerChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>
Fri, 5 May 2006 15:20:42 +0000 (15:20 +0000)
ir/be/test/psi_test.c [new file with mode: 0644]

diff --git a/ir/be/test/psi_test.c b/ir/be/test/psi_test.c
new file mode 100644 (file)
index 0000000..0a3f892
--- /dev/null
@@ -0,0 +1,23 @@
+int func (int a, int b) {
+       return a == b;
+}
+
+double func2(double a, double b) {
+   return a != b ? a : b;
+}
+
+int func3(double a, double b) {
+  return a != b;
+}
+
+int func4(double a, double b, int c, int d) {
+  return a > b ? c : d;
+}
+
+double func5(double a, double b, int c, int d) {
+  return c < d ? a : b;
+}
+
+int func6(double a, double b) {
+       return a == 0.0 && b + 1.0 < 10.0;
+}