From a01bb4cc11f3940e42004bb63e137c1ad289cb6a Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Wed, 12 Sep 2007 16:53:28 +0000 Subject: [PATCH] edge case for 64bit add where add with flag output is CSEd [r15757] --- ir/be/test/add64.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 ir/be/test/add64.c diff --git a/ir/be/test/add64.c b/ir/be/test/add64.c new file mode 100644 index 000000000..305b0ee42 --- /dev/null +++ b/ir/be/test/add64.c @@ -0,0 +1,10 @@ + +long long f(long long a, long long b) +{ + long long c = (a & 0xffffffff) | 0x100000000; + return a + b + c; +} + +int main(int argc, char **argv) { + printf("Res: %llx\n", f(0x100000000, 0x100000000)); +} -- 2.20.1