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

--- Comment #1 from ponce <[email protected]> ---
Also similarly:

int4 _mm_set1_epi64x (long a) pure @trusted
{
    long2 b = a;
    return cast(int4)(b);
}

works but:

int4 _mm_set1_epi64x (long a) pure @trusted
{
    return cast(int4)(long2(a));
}

doesn't and is likely the same bug.

Both version work correctly in GDC and LDC.

--

Reply via email to