[cfe-dev] Does Clang correctly compile inline assembly?

Alexey Samsonov samsonov at google.com
Thu Feb 28 11:34:29 PST 2013

On Thu, Feb 28, 2013 at 11:17 PM, Jack Carter <Jack.Carter at imgtec.com>wrote:

>  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.

> Jack

Alexey Samsonov, MSK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130228/494b60cf/attachment.html>

More information about the cfe-dev mailing list