Re: inline asm semantics: output constraint width smaller than input

From: H. Peter Anvin
Date: Fri Jan 23 2009 - 13:22:27 EST


Ingo Molnar wrote:

Hi,

I am trying to build the kernel with LLVM 2.5 prerelease (using llvm-gcc-4.2 frontend), however I am running into some inline asm semantics issues, and after some discussion on LLVM bugzilla I would like to know if you would be accepting patches for this: http://llvm.org/bugs/show_bug.cgi?id=3373

The problem is when "a" output constraint is used with a variable of smaller width than the "0" input constraint.


IMO, that's an LLVM bug and should be fixed in LLVM while it is in prerelease. That particular constraint is a serious one, and will haunt us for many years if we allow ourselves to go down the path of having to fix that every time it crops up.

-hpa
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/