[Issue 21676] [ICE][SIMD] DMD crashing with SIMD + optimizations + inlining

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Apr 11 09:25:04 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=21676

Dennis <dkorpel at live.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dkorpel at live.nl
                 OS|Windows                     |All

--- Comment #1 from Dennis <dkorpel at live.nl> ---
Just this:
```
double2 fun(double2 a, double2 b)
{
    a[0] = (a[0] < b[0]) ? a[0] : b[0];
    return a;
}
```
Already fails with `dmd -O` on linux:

```
findreg(0, line=180, file='src/dmd/backend/cgxmm.d', function =
'_D5test_3funFNhG2dQfZQi')
dmd: src/dmd/backend/cgcod.d:1868: Assertion `0' failed.
```

--


More information about the Digitalmars-d-bugs mailing list