Thread overview
[Issue 19584] Illegal optimization: Shift-or -> imul
Jan 14, 2019
voidstar@gmx.com
Jan 14, 2019
voidstar@gmx.com
Jan 14, 2019
ag0aep6g
Jan 18, 2019
Basile B.
Jun 06, 2019
Dlang Bot
Jun 07, 2019
Dlang Bot
Mar 21, 2020
Basile-z
January 14, 2019
https://issues.dlang.org/show_bug.cgi?id=19584

--- Comment #1 from voidstar@gmx.com <voidstar@gmx.com> ---
Using ^ instead of | works around this particular problem.

--
January 14, 2019
https://issues.dlang.org/show_bug.cgi?id=19584

voidstar@gmx.com <voidstar@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |voidstar@gmx.com

--
January 14, 2019
https://issues.dlang.org/show_bug.cgi?id=19584

ag0aep6g <ag0aep6g@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
                 CC|                            |ag0aep6g@gmail.com
           Hardware|x86_64                      |All
                 OS|Windows                     |All

--
January 18, 2019
https://issues.dlang.org/show_bug.cgi?id=19584

Basile B. <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |b2.temp@gmx.com
           Severity|major                       |regression

--- Comment #2 from Basile B. <b2.temp@gmx.com> ---
It's a regression introduced in dmd 2.064. See https://run.dlang.io/is/fOZ7zl.

Likely culprit commit : https://github.com/dlang/dmd/pull/2333/files

--
May 20, 2019
https://issues.dlang.org/show_bug.cgi?id=19584

Suleyman Sahmi (سليمان السهمي) <sahmi.soulaimane@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sahmi.soulaimane@gmail.com

--- Comment #3 from Suleyman Sahmi (سليمان السهمي) <sahmi.soulaimane@gmail.com> ---
Reduced to:

```
void main()
{
    int a = 711;
    assert(182215 == (a | (a << 8)));
    assert(182727 == (a * (1 + (1 << 8))));

    int b = 31;
    assert(511 == (b | (b << 4)));
    assert(527 == (b * (1 + (1 << 4))));
}
```

https://run.dlang.io/is/MjL0NG

--
June 06, 2019
https://issues.dlang.org/show_bug.cgi?id=19584

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
@Basile-z created dlang/dmd pull request #9990 "fix issue 19584 - Illegal optimization: Shift-or -> imul" fixing this issue:

- fix issue 19584 - Illegal optimization: Shift-or -> imul

https://github.com/dlang/dmd/pull/9990

--
June 07, 2019
https://issues.dlang.org/show_bug.cgi?id=19584

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #9990 "fix issue 19584 - Illegal optimization: Shift-or -> imul" was merged into stable:

- b6d6c2f4c0c21846a40dcd25e7d580c6180536e9 by Basile Burg:
  fix issue 19584 - Illegal optimization: Shift-or -> imul

https://github.com/dlang/dmd/pull/9990

--
March 21, 2020
https://issues.dlang.org/show_bug.cgi?id=19584

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|b2.temp@gmx.com             |

--