[Issue 18865] Add x86 SIMD Intrinsics to druntime

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Oct 28 05:02:30 UTC 2022


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

--- Comment #4 from Jack Stouffer <jack at jackstouffer.com> ---
(In reply to ponce from comment #3)
> I suggest that this bug should be closed. Moving intel-intrinsics to duntime
> would be possible of course, but not trivial or desirable I think.

I disagree. I think a systems programming language should absolutely have as
good out-of-the-box support for SIMD types and intrinsics as clang or gcc (at
least for x64, NEON would be nice). Mainstream Intel SIMD is over 20 years old;
the idea of a systems language not having great support for this would be as
odd as not having support for atomic intrinsics.

BTW core.atomic is a good example of what we already have in druntime. It
already special cases atomic operators between inline ASM for DMD and LLVM
intrinsic calls for LDC (at least LDC's overloaded version does anyway). So I
don't see why we couldn't do the same thing for Intel intrinsics.

--


More information about the Digitalmars-d-bugs mailing list