From: Christian Würdig Date: Fri, 5 May 2006 15:20:42 +0000 (+0000) Subject: dded another if conversion test file; this on inlcude floating point psi as well X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=11de6267b92b75888e4e83307c1c7dc77293ea8c;p=libfirm dded another if conversion test file; this on inlcude floating point psi as well --- 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; +}