Issue 12852 - 64 bit wrong code generated

fix https://issues.dlang.org/show_bug.cgi?id=12852

This is a blocker for https://github.com/D-Programming-Language/dmd/pull/3620