LDC crashes with SIMD intrinsics.
Guillaume Piolat
first.last at gmail.com
Wed Jan 30 23:47:21 UTC 2019
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.
More information about the digitalmars-d-ldc
mailing list