Any usable SIMD implementation?

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Thu Apr 7 22:07:05 PDT 2016


On 4/7/2016 3:15 AM, Johannes Pfau wrote:
> The problem is that march=x can set more than one
> feature flag. So instead of
>
> gdc -march=armv7-a
> you have to do
> gdc -march=armv7-a -fversion=ARM_FEATURE_CRC32
> -fversion=ARM_FEATURE_UNALIGNED ...
>
> Sou have to know exactly which features are supported for a CPU.
> Essentially you have to duplicate the CPU<=>feature database already
> present in GCC (and likely LLVM too) in your Makefile. And you'll need
> -march=armv7-a anyway to make sure the GCC codegen can use these
> features as well.
>
> So this issue is not a blocker, but what you propose is a workaround at
> best, not a solution.


Having a veritable blizzard of these predefined versions, that constantly are 
obsoleted and new ones appearing, seems like a serious problem when trying to 
standardize the language.



More information about the Digitalmars-d mailing list