From fba7027d7d045af8a90ee950acfad2a6347f7374 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Wed, 12 Sep 2007 20:31:44 +0000 Subject: [PATCH] add test for n*n=2n bits multiplication [r15764] --- ir/be/test/mul2n.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 ir/be/test/mul2n.c 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; +} -- 2.20.1