Any usable SIMD implementation?

Marco Leise via Digitalmars-d digitalmars-d at puremagic.com
Sat Apr 23 17:07:36 PDT 2016


Am Sat, 23 Apr 2016 10:40:12 +0000
schrieb Johan Engelen <j at j.nl>:

> I have a question perhaps you can comment on?
> With LLVM, it is possible to specify something like "+sse3,-sse2" 
> (I did not test whether this actually results in SSE3 
> instructions being used, but no SSE2 instructions). What should 
> be returned when querying whether "sse3" feature is enabled?
> Should __traits(targetHasFeature, "sse3") == true mean that 
> implied features (such as sse and sse2) are also available?

Please do test it. Activating sse3 and disabling sse2
likely causes the compiler to silently re-enable sse2 as a
dependency or error out.

-- 
Marco



More information about the Digitalmars-d mailing list