MachineInstr::print() with SkipOppers==true does not produce a
linebreak, so we have to do that in MachineVerifier::report().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252551
91177308-0d34-0410-b5e6-
96231b3b80d8
if (Indexes && Indexes->hasIndex(MI))
errs() << Indexes->getInstructionIndex(MI) << '\t';
MI->print(errs(), /*SkipOpers=*/true);
+ errs() << '\n';
}
void MachineVerifier::report(const char *msg,
bb.0.entry:
liveins: %edi
; CHECK: *** Bad machine code: Too few operands ***
- ; CHECK: instruction: COPY2 operands expected, but 0 given.
+ ; CHECK: instruction: COPY
+ ; CHECK: 2 operands expected, but 0 given.
COPY
RETQ
...