From 11de6267b92b75888e4e83307c1c7dc77293ea8c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christian=20W=C3=BCrdig?= Date: Fri, 5 May 2006 15:20:42 +0000 Subject: [PATCH] dded another if conversion test file; this on inlcude floating point psi as well --- ir/be/test/psi_test.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 ir/be/test/psi_test.c diff --git a/ir/be/test/psi_test.c b/ir/be/test/psi_test.c new file mode 100644 index 000000000..0a3f892eb --- /dev/null +++ b/ir/be/test/psi_test.c @@ -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; +} -- 2.20.1