[fpc-devel] Successful implementation of inline support forpure assembler routines on x86

Jeppe Johansen jeppe at j-software.dk
Sun Mar 17 22:14:55 CET 2019

On 3/17/19 9:58 PM, Florian Klämpfl wrote:
> Am 17.03.19 um 21:47 schrieb Martok:
>> Am 17.03.2019 um 18:57 schrieb Florian Klämpfl:
>>> How is it better than intrinsics support (similiar to gcc/icc etc.)?
>> It *exists*?
>> Remember how long it took to get PopCnt support? 
> PopCnt is not really an intrinsic as it has a fallback counter part 
> and works on all platforms. Intrinsic means that it is really mapped 
> directly to the CPU instruction without any fallbacks.
> As the branch of Jeppe shows, it is pretty easy, just requires some 
> continuous work.

As far as I recall there were some issues in argument passing and 
handling the new __mm128 type that were a little annoying. But it might 
be fairly easy to bring back up to speed again.

>> How about the rest of the BMI? > TBM? AES-NI? Newer AVX?
> See above.
Agreed if that's the route that's taken. It's my feeling that the newer 
extensions took a much more regular/orthogonal route than the old weird 
MMX and SSE forms.

More information about the fpc-devel mailing list