Bug 16116 – Infinite loop on (somewhat complex) simd math

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-06-02T17:31:00Z
Last change time
2017-08-02T08:07:04Z
Keywords
pull, SIMD
Assigned to
nobody
Creator
jbc.engelen

Comments

Comment #0 by jbc.engelen — 2016-06-02T17:31:09Z
DMD 2.071.0 hangs on: ``` import core.simd; void foo() { ushort8 src; ushort8 dest; ushort src0; dest = ((src * (src0 + 1) + dest * (256 - src0))>>8); } ``` LDC has the same problem so probably a front-end bug. Note: I think the ">>" is unsupported by DMD for SIMD. Related report: https://issues.dlang.org/show_bug.cgi?id=13841
Comment #1 by bugzilla — 2016-11-21T09:58:24Z
Simpler test case: void foo() { __vector(short[8]) v; int i; v = v * i; }
Comment #2 by bugzilla — 2016-11-21T10:51:04Z
Comment #3 by github-bugzilla — 2016-11-21T19:01:15Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/089cea83dd054f78db9e0145c4bef6d298f165a3 fix Issue 16116 - Infinite loop on (somewhat complex) simd math https://github.com/dlang/dmd/commit/df96ac9695393ccf8139cc7ca5db48edce5cf81d Merge pull request #6269 from WalterBright/fix16116 fix Issue 16116 - Infinite loop on (somewhat complex) simd math
Comment #4 by github-bugzilla — 2016-12-27T14:41:18Z
Commits pushed to scope at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/089cea83dd054f78db9e0145c4bef6d298f165a3 fix Issue 16116 - Infinite loop on (somewhat complex) simd math https://github.com/dlang/dmd/commit/df96ac9695393ccf8139cc7ca5db48edce5cf81d Merge pull request #6269 from WalterBright/fix16116
Comment #5 by github-bugzilla — 2017-01-16T23:25:15Z
Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/089cea83dd054f78db9e0145c4bef6d298f165a3 fix Issue 16116 - Infinite loop on (somewhat complex) simd math https://github.com/dlang/dmd/commit/df96ac9695393ccf8139cc7ca5db48edce5cf81d Merge pull request #6269 from WalterBright/fix16116
Comment #6 by github-bugzilla — 2017-08-02T08:07:04Z