From 62ccdf35181e1f2e9dd08842aba669d5acd69fd7 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Mon, 1 Oct 2007 13:07:49 +0000 Subject: [PATCH] fehler88: wrong mode_b lowering of unsigned comparisons. [r16021] --- ir/be/test/fehler88.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 ir/be/test/fehler88.c diff --git a/ir/be/test/fehler88.c b/ir/be/test/fehler88.c new file mode 100644 index 000000000..460e17b59 --- /dev/null +++ b/ir/be/test/fehler88.c @@ -0,0 +1,12 @@ +/*$ -fno-inline $*/ + +int test(unsigned int a) +{ + return a > 0; +} + +int main(void) +{ + printf("0xFFFFFFFFU > 0 is %d (should be 1)\n", test(0xFFFFFFFFU)); + return 0; +} -- 2.20.1