[ARM64] Conditional branches must always print their condition code, even AL.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205894 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bradley Smith 2014-04-09 14:44:39 +00:00
parent 42c672649c
commit 19b573d9c9
2 changed files with 2 additions and 3 deletions

View File

@ -1156,8 +1156,7 @@ void ARM64InstPrinter::printExtend(const MCInst *MI, unsigned OpNum,
void ARM64InstPrinter::printDotCondCode(const MCInst *MI, unsigned OpNum,
raw_ostream &O) {
ARM64CC::CondCode CC = (ARM64CC::CondCode)MI->getOperand(OpNum).getImm();
if (CC != ARM64CC::AL)
O << '.' << ARM64CC::getCondCodeName(CC);
O << '.' << ARM64CC::getCondCodeName(CC);
}
void ARM64InstPrinter::printCondCode(const MCInst *MI, unsigned OpNum,

View File

@ -72,7 +72,7 @@ foo:
; CHECK: b.le L1 ; encoding: [0bAAA01101,A,A,0x54]
; CHECK: fixup A - offset: 0, value: L1, kind: fixup_arm64_pcrel_imm19
b.al L1
; CHECK: b L1 ; encoding: [0bAAA01110,A,A,0x54]
; CHECK: b.al L1 ; encoding: [0bAAA01110,A,A,0x54]
; CHECK: fixup A - offset: 0, value: L1, kind: fixup_arm64_pcrel_imm19
L1:
b #28