Index: lib/CodeGen/MIRParser/MIParser.cpp =================================================================== --- lib/CodeGen/MIRParser/MIParser.cpp +++ lib/CodeGen/MIRParser/MIParser.cpp @@ -929,7 +929,7 @@ continue; return error(Operands.empty() ? Token.location() : Operands.back().End, Twine("missing implicit register operand '") + - printImplicitRegisterFlag(I) + " %" + + printImplicitRegisterFlag(I) + " $" + getRegisterName(TRI, I.getReg()) + "'"); } return false; Index: test/CodeGen/MIR/X86/expected-different-implicit-operand.mir =================================================================== --- test/CodeGen/MIR/X86/expected-different-implicit-operand.mir +++ test/CodeGen/MIR/X86/expected-different-implicit-operand.mir @@ -23,7 +23,7 @@ bb.0.entry: $eax = MOV32rm $rdi, 1, _, 0, _ CMP32ri8 $eax, 10, implicit-def $eflags - ; CHECK: [[@LINE+1]]:35: missing implicit register operand 'implicit %eflags' + ; CHECK: [[@LINE+1]]:35: missing implicit register operand 'implicit $eflags' JG_1 %bb.2.exit, implicit $eax bb.1.less: Index: test/CodeGen/MIR/X86/expected-different-implicit-register-flag.mir =================================================================== --- test/CodeGen/MIR/X86/expected-different-implicit-register-flag.mir +++ test/CodeGen/MIR/X86/expected-different-implicit-register-flag.mir @@ -23,7 +23,7 @@ bb.0.entry: $eax = MOV32rm $rdi, 1, _, 0, _ CMP32ri8 $eax, 10, implicit-def $eflags - ; CHECK: [[@LINE+1]]:42: missing implicit register operand 'implicit %eflags' + ; CHECK: [[@LINE+1]]:42: missing implicit register operand 'implicit $eflags' JG_1 %bb.2.exit, implicit-def $eflags bb.1.less: Index: test/CodeGen/MIR/X86/missing-implicit-operand.mir =================================================================== --- test/CodeGen/MIR/X86/missing-implicit-operand.mir +++ test/CodeGen/MIR/X86/missing-implicit-operand.mir @@ -27,7 +27,7 @@ $eax = MOV32rm $rdi, 1, _, 0, _ CMP32ri8 $eax, 10, implicit-def $eflags - ; CHECK: [[@LINE+1]]:20: missing implicit register operand 'implicit %eflags' + ; CHECK: [[@LINE+1]]:20: missing implicit register operand 'implicit $eflags' JG_1 %bb.2.exit bb.1.less: