Skip to content

Commit 67fb8be

Browse files
koachangithub-actions[bot]
authored andcommitted
Automerge: [SPARC][IAS][NFC] Rename CBCOND -> CPBCOND
This is in prep for OSA2011 instruction definitions, which has a CBCond instruction family. Reviewers: rorth, s-barannikov, brad0 Reviewed By: s-barannikov Pull Request: llvm/llvm-project#138402
2 parents e236aee + 87b4cac commit 67fb8be

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

llvm/lib/Target/Sparc/MCTargetDesc/SparcInstPrinter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ void SparcInstPrinter::printCCOperand(const MCInst *MI, int opNum,
192192
// Make sure CC is a fp conditional flag.
193193
CC = (CC < SPCC::FCC_BEGIN) ? (CC + SPCC::FCC_BEGIN) : CC;
194194
break;
195-
case SP::CBCOND:
196-
case SP::CBCONDA:
195+
case SP::CPBCOND:
196+
case SP::CPBCONDA:
197197
// Make sure CC is a cp conditional flag.
198198
CC = (CC < SPCC::CPCC_BEGIN) ? (CC + SPCC::CPCC_BEGIN) : CC;
199199
break;

llvm/lib/Target/Sparc/SparcInstrAliases.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,11 +286,11 @@ multiclass cp_cond_alias<string cond, int condVal> {
286286

287287
// cb<cond> $imm
288288
def : InstAlias<!strconcat(!strconcat("cb", cond), " $imm"),
289-
(CBCOND brtarget:$imm, condVal), 0>;
289+
(CPBCOND brtarget:$imm, condVal), 0>;
290290

291291
// cb<cond>,a $imm
292292
def : InstAlias<!strconcat(!strconcat("cb", cond), ",a $imm"),
293-
(CBCONDA brtarget:$imm, condVal), 0>;
293+
(CPBCONDA brtarget:$imm, condVal), 0>;
294294
}
295295

296296
// Instruction aliases for register conditional branches and moves.

llvm/lib/Target/Sparc/SparcInstrInfo.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,10 +1031,10 @@ class CPBranchSPA<dag ins, string asmstr, list<dag> pattern>
10311031

10321032
} // let isBranch = 1, isTerminator = 1, hasDelaySlot = 1
10331033

1034-
def CBCOND : CPBranchSP<(ins brtarget:$imm22, CCOp:$cond),
1034+
def CPBCOND : CPBranchSP<(ins brtarget:$imm22, CCOp:$cond),
10351035
"cb$cond $imm22",
10361036
[(SPbrfcc bb:$imm22, imm:$cond)]>;
1037-
def CBCONDA : CPBranchSPA<(ins brtarget:$imm22, CCOp:$cond),
1037+
def CPBCONDA : CPBranchSPA<(ins brtarget:$imm22, CCOp:$cond),
10381038
"cb$cond,a $imm22", []>;
10391039

10401040
// Section B.24 - Call and Link Instruction, p. 125

0 commit comments

Comments
 (0)