add test for n*n=2n bits multiplication
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 12 Sep 2007 20:31:44 +0000 (20:31 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 12 Sep 2007 20:31:44 +0000 (20:31 +0000)
[r15764]

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

diff --git a/ir/be/test/mul2n.c b/ir/be/test/mul2n.c
new file mode 100644 (file)
index 0000000..a6dd646
--- /dev/null
@@ -0,0 +1,11 @@
+/* should produce only ONE mul, no conv's */
+#include <stdio.h>
+
+int a = 0x80000000;
+
+int main(void)
+{
+       long long x = (long long)a * a;
+       printf("%lld\n", x);
+       return 0;
+}