fehler88: wrong mode_b lowering of unsigned comparisons.
authorChristoph Mallon <christoph.mallon@gmx.de>
Mon, 1 Oct 2007 13:07:49 +0000 (13:07 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Mon, 1 Oct 2007 13:07:49 +0000 (13:07 +0000)
[r16021]

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

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