[cfe-dev] Does Clang correctly compile inline assembly?
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:
> 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
adjusts stack pointer.
Alexey Samsonov, MSK
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev