>>> On 27.06.19 at 13:09, <ubiz...@gmail.com> wrote:
> On Thu, Jun 27, 2019 at 12:11 PM Jan Beulich <jbeul...@suse.com> wrote:
>>
>> Without these constraints asm() can't make use of mask registers.
> 
> asm should be deprecated. We have intrinsics for this purpose.

While maybe not explicitly applicable here, the intrinsics aren't
(afaict) providing full flexibility. In particular (just as example)
I haven't found a way to use embedded broadcast with the
intrinsics, but I can easily do so with asm().

Furthermore there are other reasons to use asm() - things like
the Linux kernel are full of it for a reason. And once one has
to use asm(), the resulting code typically is easier to follow if
one doesn't further intermix it with uses of builtins.

And finally, if asm() was indeed meant to be deprecated, how
come it pretty recently got extended to allow for "inline"?

Jan


Reply via email to