Verify the order of tied operands in inline asm.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 29 Aug 2012 23:52:52 +0000 (23:52 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 29 Aug 2012 23:52:52 +0000 (23:52 +0000)
commit492d76b02ec5dd84fa59f79ce83cd3e5ae6603fe
tree82336be00f4272e48200358dbed0e90c76ec15be
parent4d69a8c8b2133e441503ac9583c4a6056f52e0f3
Verify the order of tied operands in inline asm.

When there are multiple tied use-def pairs on an inline asm instruction,
the tied uses must appear in the same order as the defs.

It is possible to write an LLVM IR inline asm instruction that breaks
this constraint, but there is no reason for a front end to emit the
operands out of order.

The gnu inline asm syntax specifies tied operands as a single read/write
constraint "+r", so ouf of order operands are not possible.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162878 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/InstrEmitter.cpp