From: Michael Beck Date: Wed, 12 Sep 2007 20:31:44 +0000 (+0000) Subject: add test for n*n=2n bits multiplication X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=fba7027d7d045af8a90ee950acfad2a6347f7374;p=libfirm add test for n*n=2n bits multiplication [r15764] --- diff --git a/ir/be/test/mul2n.c b/ir/be/test/mul2n.c new file mode 100644 index 000000000..a6dd646ad --- /dev/null +++ b/ir/be/test/mul2n.c @@ -0,0 +1,11 @@ +/* should produce only ONE mul, no conv's */ +#include + +int a = 0x80000000; + +int main(void) +{ + long long x = (long long)a * a; + printf("%lld\n", x); + return 0; +}