wrong 64bit lowering
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 28 Aug 2008 16:07:56 +0000 (16:07 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 28 Aug 2008 16:07:56 +0000 (16:07 +0000)
[r21553]

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

diff --git a/ir/be/test/fehler139.c b/ir/be/test/fehler139.c
new file mode 100644 (file)
index 0000000..56eb2b6
--- /dev/null
@@ -0,0 +1,12 @@
+#include <stdio.h>
+
+long long test(long *i, int p) {
+       long long v = *i + (p != 0);
+       return v;
+}
+
+int main() {
+       long x = 0xFFFFFFFF;
+       printf("%llx\n", test(&x, 5));
+       return 0;
+}