[llvm] r205894 - [ARM64] Conditional branches must always print their condition code, even AL.
Bradley Smith
bradley.smith at arm.com
Wed Apr 9 07:44:40 PDT 2014
Author: brasmi01
Date: Wed Apr 9 09:44:39 2014
New Revision: 205894
URL: http://llvm.org/viewvc/llvm-project?rev=205894&view=rev
Log:
[ARM64] Conditional branches must always print their condition code, even AL.
Modified:
llvm/trunk/lib/Target/ARM64/InstPrinter/ARM64InstPrinter.cpp
llvm/trunk/test/MC/ARM64/branch-encoding.s
Modified: llvm/trunk/lib/Target/ARM64/InstPrinter/ARM64InstPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM64/InstPrinter/ARM64InstPrinter.cpp?rev=205894&r1=205893&r2=205894&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM64/InstPrinter/ARM64InstPrinter.cpp (original)
+++ llvm/trunk/lib/Target/ARM64/InstPrinter/ARM64InstPrinter.cpp Wed Apr 9 09:44:39 2014
@@ -1156,8 +1156,7 @@ void ARM64InstPrinter::printExtend(const
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,
Modified: llvm/trunk/test/MC/ARM64/branch-encoding.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ARM64/branch-encoding.s?rev=205894&r1=205893&r2=205894&view=diff
==============================================================================
--- llvm/trunk/test/MC/ARM64/branch-encoding.s (original)
+++ llvm/trunk/test/MC/ARM64/branch-encoding.s Wed Apr 9 09:44:39 2014
@@ -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
More information about the llvm-commits
mailing list