Fix sub-register operand verification.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 5 Oct 2011 22:12:57 +0000 (22:12 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 5 Oct 2011 22:12:57 +0000 (22:12 +0000)
commitb4a0221e85eeb4015a37f30738099dc680ac32d7
treea6a478abaaeba83aa63054b9767cb9d3c71fbd25
parentef8a4c2a65fe28e8a798a0631e34356271e5f55f
Fix sub-register operand verification.

PhysReg operands are not allowed to have sub-register indices at all.

For virtual registers with sub-reg indices, check that all registers in
the register class support the sub-reg index.

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