[Issue 13383] wrong code with -O with ints, longs and bitwise operations
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun Aug 31 02:04:20 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=13383
yebblies <yebblies at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |pull
CC| |yebblies at gmail.com
Assignee|nobody at puremagic.com |yebblies at gmail.com
OS|Windows |All
--- Comment #2 from yebblies <yebblies at gmail.com> ---
The compiler incorrectly optimizes 1L & (1L << k) to 1 btst k, which is only
valid when 1L fits in a register.
https://github.com/D-Programming-Language/dmd/pull/3934
--
More information about the Digitalmars-d-bugs
mailing list