LDC crashes with SIMD intrinsics.

NaN divide at by.zero
Thu Jan 31 00:02:41 UTC 2019


On Wednesday, 30 January 2019 at 23:47:21 UTC, Guillaume Piolat 
wrote:
> On Wednesday, 30 January 2019 at 23:02:16 UTC, NaN wrote:
>> Latest version of LDC, and AuburnSounds intelli/intrinsics 
>> library..
>>
>> This causes the compiler to crash...
>>
>> float foo(float val)
>> {
>>     return _mm_set1_ps(val)[0];
>> }
>>
>> Whereas this is OK...
>>
>> float foo(float val)
>> {
>>     __m128 tmp = _mm_set1_ps(val);
>>     return tmp[0];
>> }
>>
>> Seems indexing directly on the return of any intrinsic 
>> function causes the crash, at least everything i tried had the 
>> same result.
>>
>
> Good catch, reproduced without intel-intrinsics: 
> https://d.godbolt.org/z/gHTtpA
> This crashes all LDC versions.
>
> Next time could you please report in intel-intrinsics or LDC 
> bugtracker? Forum posts come and go, but issues stay.

Yeah will do.


More information about the digitalmars-d-ldc mailing list