mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
[Sparc] Add support for parsing branch instructions and conditional moves.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198738 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -82,6 +82,17 @@ void SparcInstPrinter::printCCOperand(const MCInst *MI, int opNum,
|
||||
raw_ostream &O)
|
||||
{
|
||||
int CC = (int)MI->getOperand(opNum).getImm();
|
||||
switch (MI->getOpcode()) {
|
||||
default: break;
|
||||
case SP::FBCOND:
|
||||
case SP::MOVFCCrr:
|
||||
case SP::MOVFCCri:
|
||||
case SP::FMOVS_FCC:
|
||||
case SP::FMOVD_FCC:
|
||||
case SP::FMOVQ_FCC: // Make sure CC is a fp conditional flag.
|
||||
CC = (CC < 16) ? (CC + 16) : CC;
|
||||
break;
|
||||
}
|
||||
O << SPARCCondCodeToString((SPCC::CondCodes)CC);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user