For t2BFI disassembly, apply the same error checking as in r101205.

Change the error msg to read "Encoding error: msb < lsb".

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101293 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Johnny Chen
2010-04-14 22:04:45 +00:00
parent 7ad3b2a3f0
commit 2fd100a4cb
2 changed files with 6 additions and 3 deletions

View File

@@ -892,8 +892,8 @@ static inline bool getBFCInvMask(uint32_t insn, uint32_t &mask) {
uint32_t lsb = slice(insn, 11, 7);
uint32_t msb = slice(insn, 20, 16);
uint32_t Val = 0;
if (lsb > msb) {
errs() << "Encoding error: lsb > msb\n";
if (msb < lsb) {
errs() << "Encoding error: msb < lsb\n";
return false;
}