fehler132: Endless loop in 64bit lowerer with asm-node.
authorChristoph Mallon <christoph.mallon@gmx.de>
Sat, 9 Aug 2008 06:36:48 +0000 (06:36 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Sat, 9 Aug 2008 06:36:48 +0000 (06:36 +0000)
[r21071]

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

diff --git a/ir/be/test/fehler132.c b/ir/be/test/fehler132.c
new file mode 100644 (file)
index 0000000..bdf6084
--- /dev/null
@@ -0,0 +1,16 @@
+unsigned long long f(void)
+{
+       unsigned long long res;
+       asm(
+               "mul %2\n\t"
+               : "=A" (res)
+               : "a" (0x10000), "r" (0x10000)
+       );
+       return res;
+}
+
+int main(void)
+{
+       printf("0x%llX\n", f());
+       return 0;
+}