Legalize doesn't legalize the arguments to an inline asm call. see test/Regression/CodeGen/Alpha/2006-07-03-ASMFormalLowering.ll for an example. I would think that a similar example (function consisting of only a call to an inline asm block) in other archs would show the same problem.
What am I missing here? $ llvm-as < 2006-07-03-ASMFormalLowering.ll | llc -march=alpha Cannot yet select: 0x8603da0: i64,i64,ch = formal_arguments 0x8603cf0, 0x8603d50, 0x8603d50 Abort This looks like you haven't implemented support for formal arguments yet. ? -Chris
ok, I get it, investigating.
Fixed. Patch here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20060710/035942.html Testcase here: CodeGen/Alpha/2006-07-03-ASMFormalLowering.ll -Chris