[Issue 21672] New: [REG][ICE][SIMD] crash whild compiling _mm_loadu_si16

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 1 23:39:50 UTC 2021


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

          Issue ID: 21672
           Summary: [REG][ICE][SIMD] crash whild compiling _mm_loadu_si16
           Product: D
           Version: D2
          Hardware: x86_64
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: aliloko at gmail.com

# Repro case

This fails with DMD 2.096-b1 and -O in x86_64

------------- repro.d ------------------

import core.simd;

int4 _mm_loadu_si16(const(void)* mem_addr) pure @trusted
{
    int r = *cast(short*)(mem_addr);
    short8 result = [0, 0, 0, 0, 0, 0, 0, 0];
    result.ptr[0] = cast(short)r;
    return cast(int4)result;
}

----------------------------------------

Works in 2.095.1 though.


# Output

tym = 0x6
dmd failed with exit code -1073741795.


In Godbolt: https://d.godbolt.org/z/vx1j3r

--


More information about the Digitalmars-d-bugs mailing list