Does Clang correctly compile inline assembly?

Alexey,

Have you tried the code with gcc yet?

If it doesn’t pass gcc then I would suspect your inline code. And just because it compiles, make sure gcc is doing what you think it should. Sometimes llvm is better at following constraint rules.

Jack

Alexey,

Have you tried the code with gcc yet?

If it doesn't pass gcc then I would suspect your inline code. And just
because it compiles, make sure gcc is doing what you think it should.
Sometimes llvm is better at following constraint rules.

Yes, this code works under gcc. After some thinking, I thinking the
assembly is bad -
Clang understands that it runs on a leaf function and neither uses frame
pointers, nor
adjusts stack pointer.