Lines Matching refs:CCMask

45     : Op0(Op0In), Op1(Op1In), Opcode(0), ICmpType(0), CCValid(0), CCMask(0) {}  in Comparison()
60 unsigned CCMask; member
1475 static IPMConversion getIPMConversion(unsigned CCValid, unsigned CCMask) { in getIPMConversion() argument
1478 if (CCMask == (CCValid & (SystemZ::CCMASK_1 | SystemZ::CCMASK_3))) in getIPMConversion()
1480 if (CCMask == (CCValid & (SystemZ::CCMASK_2 | SystemZ::CCMASK_3))) in getIPMConversion()
1491 if (CCMask == (CCValid & SystemZ::CCMASK_0)) in getIPMConversion()
1493 if (CCMask == (CCValid & (SystemZ::CCMASK_0 | SystemZ::CCMASK_1))) in getIPMConversion()
1495 if (CCMask == (CCValid & (SystemZ::CCMASK_0 in getIPMConversion()
1499 if (CCMask == (CCValid & SystemZ::CCMASK_3)) in getIPMConversion()
1501 if (CCMask == (CCValid & (SystemZ::CCMASK_1 in getIPMConversion()
1508 if (CCMask == (CCValid & (SystemZ::CCMASK_0 | SystemZ::CCMASK_2))) in getIPMConversion()
1513 if (CCMask == (CCValid & (SystemZ::CCMASK_1 | SystemZ::CCMASK_2))) in getIPMConversion()
1515 if (CCMask == (CCValid & (SystemZ::CCMASK_0 | SystemZ::CCMASK_3))) in getIPMConversion()
1521 if (CCMask == (CCValid & SystemZ::CCMASK_1)) in getIPMConversion()
1523 if (CCMask == (CCValid & SystemZ::CCMASK_2)) in getIPMConversion()
1526 if (CCMask == (CCValid & (SystemZ::CCMASK_0 in getIPMConversion()
1530 if (CCMask == (CCValid & (SystemZ::CCMASK_0 in getIPMConversion()
1550 if ((Value == -1 && C.CCMask == SystemZ::CCMASK_CMP_GT) || in adjustZeroCmp()
1551 (Value == -1 && C.CCMask == SystemZ::CCMASK_CMP_LE) || in adjustZeroCmp()
1552 (Value == 1 && C.CCMask == SystemZ::CCMASK_CMP_LT) || in adjustZeroCmp()
1553 (Value == 1 && C.CCMask == SystemZ::CCMASK_CMP_GE)) { in adjustZeroCmp()
1554 C.CCMask ^= SystemZ::CCMASK_CMP_EQ; in adjustZeroCmp()
1592 if (Value == 0 && C.CCMask == SystemZ::CCMASK_CMP_LT) in adjustSubwordCmp()
1594 Value = 127, C.CCMask = SystemZ::CCMASK_CMP_GT; in adjustSubwordCmp()
1595 else if (Value == 0 && C.CCMask == SystemZ::CCMASK_CMP_GE) in adjustSubwordCmp()
1597 Value = 128, C.CCMask = SystemZ::CCMASK_CMP_LT; in adjustSubwordCmp()
1712 static unsigned reverseCCMask(unsigned CCMask) { in reverseCCMask() argument
1713 return ((CCMask & SystemZ::CCMASK_CMP_EQ) | in reverseCCMask()
1714 (CCMask & SystemZ::CCMASK_CMP_GT ? SystemZ::CCMASK_CMP_LT : 0) | in reverseCCMask()
1715 (CCMask & SystemZ::CCMASK_CMP_LT ? SystemZ::CCMASK_CMP_GT : 0) | in reverseCCMask()
1716 (CCMask & SystemZ::CCMASK_CMP_UO)); in reverseCCMask()
1723 if (C.CCMask == SystemZ::CCMASK_CMP_EQ || in adjustForSubtraction()
1724 C.CCMask == SystemZ::CCMASK_CMP_NE) { in adjustForSubtraction()
1749 C.CCMask = reverseCCMask(C.CCMask); in adjustForFNeg()
1826 static unsigned getTestUnderMaskCond(unsigned BitSize, unsigned CCMask, in getTestUnderMaskCond() argument
1847 if (CCMask == SystemZ::CCMASK_CMP_EQ) in getTestUnderMaskCond()
1849 if (CCMask == SystemZ::CCMASK_CMP_NE) in getTestUnderMaskCond()
1853 if (CCMask == SystemZ::CCMASK_CMP_LT) in getTestUnderMaskCond()
1855 if (CCMask == SystemZ::CCMASK_CMP_GE) in getTestUnderMaskCond()
1859 if (CCMask == SystemZ::CCMASK_CMP_LE) in getTestUnderMaskCond()
1861 if (CCMask == SystemZ::CCMASK_CMP_GT) in getTestUnderMaskCond()
1867 if (CCMask == SystemZ::CCMASK_CMP_EQ) in getTestUnderMaskCond()
1869 if (CCMask == SystemZ::CCMASK_CMP_NE) in getTestUnderMaskCond()
1873 if (CCMask == SystemZ::CCMASK_CMP_GT) in getTestUnderMaskCond()
1875 if (CCMask == SystemZ::CCMASK_CMP_LE) in getTestUnderMaskCond()
1879 if (CCMask == SystemZ::CCMASK_CMP_GE) in getTestUnderMaskCond()
1881 if (CCMask == SystemZ::CCMASK_CMP_LT) in getTestUnderMaskCond()
1887 if (CCMask == SystemZ::CCMASK_CMP_LE) in getTestUnderMaskCond()
1889 if (CCMask == SystemZ::CCMASK_CMP_GT) in getTestUnderMaskCond()
1893 if (CCMask == SystemZ::CCMASK_CMP_LT) in getTestUnderMaskCond()
1895 if (CCMask == SystemZ::CCMASK_CMP_GE) in getTestUnderMaskCond()
1902 if (CCMask == SystemZ::CCMASK_CMP_EQ && CmpVal == Low) in getTestUnderMaskCond()
1904 if (CCMask == SystemZ::CCMASK_CMP_NE && CmpVal == Low) in getTestUnderMaskCond()
1906 if (CCMask == SystemZ::CCMASK_CMP_EQ && CmpVal == High) in getTestUnderMaskCond()
1908 if (CCMask == SystemZ::CCMASK_CMP_NE && CmpVal == High) in getTestUnderMaskCond()
1941 NewC.CCMask == SystemZ::CCMASK_CMP_EQ || in adjustForTestUnderMask()
1942 NewC.CCMask == SystemZ::CCMASK_CMP_NE || in adjustForTestUnderMask()
1946 if (NewC.CCMask == SystemZ::CCMASK_CMP_LE || in adjustForTestUnderMask()
1947 NewC.CCMask == SystemZ::CCMASK_CMP_GT) { in adjustForTestUnderMask()
1951 NewC.CCMask ^= SystemZ::CCMASK_CMP_EQ; in adjustForTestUnderMask()
1968 (NewCCMask = getTestUnderMaskCond(BitSize, NewC.CCMask, in adjustForTestUnderMask()
1977 (NewCCMask = getTestUnderMaskCond(BitSize, NewC.CCMask, in adjustForTestUnderMask()
1984 NewCCMask = getTestUnderMaskCond(BitSize, NewC.CCMask, MaskVal, CmpVal, in adjustForTestUnderMask()
1998 C.CCMask = NewCCMask; in adjustForTestUnderMask()
2013 C.CCMask = CC < 4 ? 1 << (3 - CC) : 0; in getIntrinsicCmp()
2016 C.CCMask = CC < 4 ? ~(1 << (3 - CC)) : -1; in getIntrinsicCmp()
2020 C.CCMask = CC < 4 ? ~0U << (4 - CC) : -1; in getIntrinsicCmp()
2023 C.CCMask = CC < 4 ? ~(~0U << (4 - CC)) : 0; in getIntrinsicCmp()
2027 C.CCMask = CC < 4 ? ~0U << (3 - CC) : -1; in getIntrinsicCmp()
2030 C.CCMask = CC < 4 ? ~(~0U << (3 - CC)) : 0; in getIntrinsicCmp()
2033 C.CCMask &= CCValid; in getIntrinsicCmp()
2053 C.CCMask = CCMaskForCondCode(Cond); in getCmp()
2066 if (C.CCMask == SystemZ::CCMASK_CMP_EQ || in getCmp()
2067 C.CCMask == SystemZ::CCMASK_CMP_NE || in getCmp()
2070 else if (C.CCMask & SystemZ::CCMASK_CMP_UO) in getCmp()
2074 C.CCMask &= ~SystemZ::CCMASK_CMP_UO; in getCmp()
2084 C.CCMask = reverseCCMask(C.CCMask); in getCmp()
2111 bool RegisterOnly = (bool(C.CCMask & SystemZ::CCMASK_TM_MIXED_MSB_0) != in emitCmp()
2112 bool(C.CCMask & SystemZ::CCMASK_TM_MIXED_MSB_1)); in emitCmp()
2155 unsigned CCValid, unsigned CCMask) { in emitSETCC() argument
2156 IPMConversion Conversion = getIPMConversion(CCValid, CCMask); in emitSETCC()
2315 return emitSETCC(DAG, DL, Glue, C.CCValid, C.CCMask); in lowerSETCC()
2329 DAG.getConstant(C.CCMask, DL, MVT::i32), Dest, Glue); in lowerBR_CC()
2369 C.CCMask != SystemZ::CCMASK_CMP_EQ && in lowerSELECT_CC()
2370 C.CCMask != SystemZ::CCMASK_CMP_NE && in lowerSELECT_CC()
2374 return getAbsolute(DAG, DL, TrueOp, C.CCMask & SystemZ::CCMASK_CMP_LT); in lowerSELECT_CC()
2376 return getAbsolute(DAG, DL, FalseOp, C.CCMask & SystemZ::CCMASK_CMP_GT); in lowerSELECT_CC()
2391 C.CCMask ^= C.CCValid; in lowerSELECT_CC()
2392 SDValue Result = emitSETCC(DAG, DL, Glue, C.CCValid, C.CCMask); in lowerSELECT_CC()
2405 DAG.getConstant(C.CCMask, DL, MVT::i32), Glue}; in lowerSELECT_CC()
4879 unsigned CCMask = MI->getOperand(4).getImm(); in emitSelect() local
4891 .addImm(CCValid).addImm(CCMask).addMBB(JoinMBB); in emitSelect()
4929 unsigned CCMask = MI->getOperand(5).getImm(); in emitCondStore() local
4939 CCMask ^= CCValid; in emitCondStore()
4942 .addImm(CCValid).addImm(CCMask); in emitCondStore()
4949 CCMask ^= CCValid; in emitCondStore()
4960 .addImm(CCValid).addImm(CCMask).addMBB(JoinMBB); in emitCondStore()