From 19b573d9c9c1daaf08ebc8437b02af958aa3697d Mon Sep 17 00:00:00 2001 From: Bradley Smith Date: Wed, 9 Apr 2014 14:44:39 +0000 Subject: [PATCH] [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 --- lib/Target/ARM64/InstPrinter/ARM64InstPrinter.cpp | 3 +-- test/MC/ARM64/branch-encoding.s | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/Target/ARM64/InstPrinter/ARM64InstPrinter.cpp b/lib/Target/ARM64/InstPrinter/ARM64InstPrinter.cpp index ffa4a33b626..42481df132f 100644 --- a/lib/Target/ARM64/InstPrinter/ARM64InstPrinter.cpp +++ b/lib/Target/ARM64/InstPrinter/ARM64InstPrinter.cpp @@ -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, diff --git a/test/MC/ARM64/branch-encoding.s b/test/MC/ARM64/branch-encoding.s index 7857feaa610..4574047f49d 100644 --- a/test/MC/ARM64/branch-encoding.s +++ b/test/MC/ARM64/branch-encoding.s @@ -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