Home
last modified time | relevance | path

Searched refs:CCMask (Results 1 – 7 of 7) sorted by relevance

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/
DSystemZElimCompare.cpp447 unsigned CCMask = CCUserMI->getOperand(FirstOpNum + 1).getImm(); in adjustCCMasksForInstr() local
448 assert(CCValid == CompareCCValues && (CCMask & ~CCValid) == 0 && in adjustCCMasksForInstr()
451 unsigned OutMask = ~ReusableCCMask & CCMask; in adjustCCMasksForInstr()
462 unsigned CCMask = AlterMasks[I + 1]->getImm(); in adjustCCMasksForInstr() local
465 CCMask = (CCMask == SystemZ::CCMASK_CMP_EQ ? in adjustCCMasksForInstr()
467 CCMask &= CCValues; // Logical subtracts never set CC=0. in adjustCCMasksForInstr()
469 if (CCMask & ~ReusableCCMask) in adjustCCMasksForInstr()
470 CCMask = (CCMask & ReusableCCMask) | (CCValues & ~ReusableCCMask); in adjustCCMasksForInstr()
471 CCMask |= (CCMask & OFImplies) ? SystemZ::CCMASK_ARITH_OVERFLOW : 0; in adjustCCMasksForInstr()
473 AlterMasks[I + 1]->setImm(CCMask); in adjustCCMasksForInstr()
[all …]
DSystemZISelLowering.cpp38 Opcode(0), ICmpType(0), CCValid(0), CCMask(0) {} in Comparison()
56 unsigned CCMask; member
2001 if ((Value == -1 && C.CCMask == SystemZ::CCMASK_CMP_GT) || in adjustZeroCmp()
2002 (Value == -1 && C.CCMask == SystemZ::CCMASK_CMP_LE) || in adjustZeroCmp()
2003 (Value == 1 && C.CCMask == SystemZ::CCMASK_CMP_LT) || in adjustZeroCmp()
2004 (Value == 1 && C.CCMask == SystemZ::CCMASK_CMP_GE)) { in adjustZeroCmp()
2005 C.CCMask ^= SystemZ::CCMASK_CMP_EQ; in adjustZeroCmp()
2044 if (Value == 0 && C.CCMask == SystemZ::CCMASK_CMP_LT) in adjustSubwordCmp()
2046 Value = 127, C.CCMask = SystemZ::CCMASK_CMP_GT; in adjustSubwordCmp()
2047 else if (Value == 0 && C.CCMask == SystemZ::CCMASK_CMP_GE) in adjustSubwordCmp()
[all …]
DSystemZISelDAGToDAG.cpp1556 SDValue CCMask = Node->getOperand(3); in Select() local
1560 cast<ConstantSDNode>(CCMask.getNode())->getZExtValue(); in Select()
1562 CCMask = CurDAG->getTargetConstant(ConstCCValid ^ ConstCCMask, in Select()
1563 SDLoc(Node), CCMask.getValueType()); in Select()
1566 CurDAG->UpdateNodeOperands(Node, Op1, Op0, CCValid, CCMask, Op4); in Select()
1763 static IPMConversion getIPMConversion(unsigned CCValid, unsigned CCMask) { in getIPMConversion() argument
1766 if (CCMask == (CCValid & (SystemZ::CCMASK_1 | SystemZ::CCMASK_3))) in getIPMConversion()
1768 if (CCMask == (CCValid & (SystemZ::CCMASK_2 | SystemZ::CCMASK_3))) in getIPMConversion()
1779 if (CCMask == (CCValid & SystemZ::CCMASK_0)) in getIPMConversion()
1781 if (CCMask == (CCValid & (SystemZ::CCMASK_0 | SystemZ::CCMASK_1))) in getIPMConversion()
[all …]
DSystemZInstrInfo.cpp294 unsigned CCMask = WorkingMI.getOperand(4).getImm(); in commuteInstructionImpl() local
295 WorkingMI.getOperand(4).setImm(CCMask ^ CCValid); in commuteInstructionImpl()
387 if (Branch.CCMask == SystemZ::CCMASK_ANY) { in analyzeBranch()
420 Cond.push_back(MachineOperand::CreateImm(Branch.CCMask)); in analyzeBranch()
435 if (OldCCValid == Branch.CCValid && OldCCMask == Branch.CCMask) in analyzeBranch()
503 unsigned CCMask = Cond[1].getImm(); in insertBranch() local
505 .addImm(CCValid).addImm(CCMask).addMBB(TBB); in insertBranch()
577 unsigned CCMask = Pred[1].getImm(); in insertSelect() local
605 .addImm(CCValid).addImm(CCMask); in insertSelect()
722 unsigned CCMask = Pred[1].getImm(); in PredicateInstruction() local
[all …]
DSystemZInstrInfo.h123 unsigned CCMask; variable
127 : Target(target), Type(type), CCValid(ccValid), CCMask(ccMask) {} in Branch()
DSystemZPostRewrite.cpp167 unsigned CCMask = MI.getOperand(4).getImm(); in expandCondMove() local
194 .addImm(CCValid).addImm(CCMask ^ CCValid).addMBB(RestMBB); in expandCondMove()
DSystemZISelLowering.h646 unsigned CCMask,