Lines Matching refs:PPC
254 if (RegInfo->getRegClass(Reg) == &PPC::VRRCRegClass) { in InsertVRSaveCode()
273 unsigned InVRSAVE = RegInfo->createVirtualRegister(&PPC::GPRCRegClass); in InsertVRSaveCode()
274 unsigned UpdatedVRSAVE = RegInfo->createVirtualRegister(&PPC::GPRCRegClass); in InsertVRSaveCode()
284 BuildMI(EntryBB, IP, dl, TII.get(PPC::MFVRSAVE), InVRSAVE); in InsertVRSaveCode()
285 BuildMI(EntryBB, IP, dl, TII.get(PPC::UPDATE_VRSAVE), in InsertVRSaveCode()
287 BuildMI(EntryBB, IP, dl, TII.get(PPC::MTVRSAVE)).addReg(UpdatedVRSAVE); in InsertVRSaveCode()
301 BuildMI(*BB, IP, dl, TII.get(PPC::MTVRSAVE)).addReg(InVRSAVE); in InsertVRSaveCode()
321 GlobalBaseReg = PPC::R30; in getGlobalBaseReg()
323 BuildMI(FirstMBB, MBBI, dl, TII.get(PPC::MoveGOTtoLR)); in getGlobalBaseReg()
324 BuildMI(FirstMBB, MBBI, dl, TII.get(PPC::MFLR), GlobalBaseReg); in getGlobalBaseReg()
327 BuildMI(FirstMBB, MBBI, dl, TII.get(PPC::MovePCtoLR)); in getGlobalBaseReg()
328 BuildMI(FirstMBB, MBBI, dl, TII.get(PPC::MFLR), GlobalBaseReg); in getGlobalBaseReg()
329 unsigned TempReg = RegInfo->createVirtualRegister(&PPC::GPRCRegClass); in getGlobalBaseReg()
331 TII.get(PPC::UpdateGBR), GlobalBaseReg) in getGlobalBaseReg()
337 RegInfo->createVirtualRegister(&PPC::GPRC_NOR0RegClass); in getGlobalBaseReg()
338 BuildMI(FirstMBB, MBBI, dl, TII.get(PPC::MovePCtoLR)); in getGlobalBaseReg()
339 BuildMI(FirstMBB, MBBI, dl, TII.get(PPC::MFLR), GlobalBaseReg); in getGlobalBaseReg()
342 GlobalBaseReg = RegInfo->createVirtualRegister(&PPC::G8RC_NOX0RegClass); in getGlobalBaseReg()
343 BuildMI(FirstMBB, MBBI, dl, TII.get(PPC::MovePCtoLR8)); in getGlobalBaseReg()
344 BuildMI(FirstMBB, MBBI, dl, TII.get(PPC::MFLR8), GlobalBaseReg); in getGlobalBaseReg()
402 if (!FuncInfo->BPI) return PPC::BR_NO_HINT; in getBranchHint()
407 if (BBTerm->getNumSuccessors() != 2) return PPC::BR_NO_HINT; in getBranchHint()
431 return PPC::BR_NO_HINT; in getBranchHint()
445 return (TProb > FProb) ? PPC::BR_TAKEN_HINT : PPC::BR_NONTAKEN_HINT; in getBranchHint()
460 unsigned Opc = N->getValueType(0) == MVT::i32 ? PPC::ADDI : PPC::ADDI8; in selectFrameIndex()
583 ReplaceNode(N, CurDAG->getMachineNode(PPC::RLWIMI, dl, MVT::i32, Ops)); in tryBitfieldInsert()
718 Result = CurDAG->getMachineNode(PPC::LI8, dl, MVT::i64, getI32Imm(Lo)); in getInt64Direct()
721 unsigned OpC = Hi ? PPC::LIS8 : PPC::LI8; in getInt64Direct()
724 Result = CurDAG->getMachineNode(PPC::ORI8, dl, MVT::i64, in getInt64Direct()
728 Result = CurDAG->getMachineNode(PPC::LIS8, dl, MVT::i64, getI32Imm(Hi)); in getInt64Direct()
736 Result = CurDAG->getMachineNode(PPC::RLDICR, dl, MVT::i64, in getInt64Direct()
744 Result = CurDAG->getMachineNode(PPC::ORIS8, dl, MVT::i64, in getInt64Direct()
748 Result = CurDAG->getMachineNode(PPC::ORI8, dl, MVT::i64, in getInt64Direct()
807 return CurDAG->getMachineNode(PPC::RLDICR, dl, MVT::i64, Val, in getInt64()
1328 VRot = SDValue(CurDAG->getMachineNode(PPC::RLWINM, dl, MVT::i32, in SelectAndParts32()
1336 ANDIVal = SDValue(CurDAG->getMachineNode(PPC::ANDIo, dl, MVT::i32, in SelectAndParts32()
1339 ANDISVal = SDValue(CurDAG->getMachineNode(PPC::ANDISo, dl, MVT::i32, in SelectAndParts32()
1348 TotalVal = SDValue(CurDAG->getMachineNode(PPC::OR, dl, MVT::i32, in SelectAndParts32()
1354 Res = SDValue(CurDAG->getMachineNode(PPC::OR, dl, MVT::i32, in SelectAndParts32()
1385 Res = SDValue(CurDAG->getMachineNode(PPC::RLWINM, dl, MVT::i32, Ops), in Select32()
1406 Res = SDValue(CurDAG->getMachineNode(PPC::RLWINM, dl, MVT::i32, Ops), 0); in Select32()
1412 Res = SDValue(CurDAG->getMachineNode(PPC::RLWIMI, dl, MVT::i32, Ops), 0); in Select32()
1429 ANDIVal = SDValue(CurDAG->getMachineNode(PPC::ANDIo, dl, MVT::i32, in Select32()
1432 ANDISVal = SDValue(CurDAG->getMachineNode(PPC::ANDISo, dl, MVT::i32, in Select32()
1440 Res = SDValue(CurDAG->getMachineNode(PPC::OR, dl, MVT::i32, in Select32()
1486 return SDValue(CurDAG->getMachineNode(PPC::RLWINM8, dl, MVT::i64, in SelectRotMask64()
1493 return SDValue(CurDAG->getMachineNode(PPC::RLDICL, dl, MVT::i64, Ops), 0); in SelectRotMask64()
1499 return SDValue(CurDAG->getMachineNode(PPC::RLDICR, dl, MVT::i64, Ops), 0); in SelectRotMask64()
1505 return SDValue(CurDAG->getMachineNode(PPC::RLDIC, dl, MVT::i64, Ops), 0); in SelectRotMask64()
1547 return SDValue(CurDAG->getMachineNode(PPC::RLWIMI8, dl, MVT::i64, in SelectRotMaskIns64()
1554 return SDValue(CurDAG->getMachineNode(PPC::RLDIMI, dl, MVT::i64, Ops), 0); in SelectRotMaskIns64()
1696 ANDIVal = SDValue(CurDAG->getMachineNode(PPC::ANDIo8, dl, MVT::i64, in SelectAndParts64()
1699 ANDISVal = SDValue(CurDAG->getMachineNode(PPC::ANDISo8, dl, MVT::i64, in SelectAndParts64()
1707 TotalVal = SDValue(CurDAG->getMachineNode(PPC::OR8, dl, MVT::i64, in SelectAndParts64()
1712 SDValue(CurDAG->getMachineNode(PPC::AND8, dl, MVT::i64, in SelectAndParts64()
1719 Res = SDValue(CurDAG->getMachineNode(PPC::OR8, dl, MVT::i64, in SelectAndParts64()
1839 ANDIVal = SDValue(CurDAG->getMachineNode(PPC::ANDIo8, dl, MVT::i64, in Select64()
1842 ANDISVal = SDValue(CurDAG->getMachineNode(PPC::ANDISo8, dl, MVT::i64, in Select64()
1850 Res = SDValue(CurDAG->getMachineNode(PPC::OR8, dl, MVT::i64, in Select64()
1857 SDValue(CurDAG->getMachineNode(PPC::AND8, dl, MVT::i64, in Select64()
1996 return SDValue(CurDAG->getMachineNode(PPC::CMPLWI, dl, MVT::i32, LHS, in SelectCC()
2001 return SDValue(CurDAG->getMachineNode(PPC::CMPWI, dl, MVT::i32, LHS, in SelectCC()
2014 SDValue Xor(CurDAG->getMachineNode(PPC::XORIS, dl, MVT::i32, LHS, in SelectCC()
2016 return SDValue(CurDAG->getMachineNode(PPC::CMPLWI, dl, MVT::i32, Xor, in SelectCC()
2019 Opc = PPC::CMPLW; in SelectCC()
2022 return SDValue(CurDAG->getMachineNode(PPC::CMPLWI, dl, MVT::i32, LHS, in SelectCC()
2024 Opc = PPC::CMPLW; in SelectCC()
2028 return SDValue(CurDAG->getMachineNode(PPC::CMPWI, dl, MVT::i32, LHS, in SelectCC()
2032 Opc = PPC::CMPW; in SelectCC()
2040 return SDValue(CurDAG->getMachineNode(PPC::CMPLDI, dl, MVT::i64, LHS, in SelectCC()
2045 return SDValue(CurDAG->getMachineNode(PPC::CMPDI, dl, MVT::i64, LHS, in SelectCC()
2059 SDValue Xor(CurDAG->getMachineNode(PPC::XORIS8, dl, MVT::i64, LHS, in SelectCC()
2061 return SDValue(CurDAG->getMachineNode(PPC::CMPLDI, dl, MVT::i64, Xor, in SelectCC()
2066 Opc = PPC::CMPLD; in SelectCC()
2069 return SDValue(CurDAG->getMachineNode(PPC::CMPLDI, dl, MVT::i64, LHS, in SelectCC()
2071 Opc = PPC::CMPLD; in SelectCC()
2075 return SDValue(CurDAG->getMachineNode(PPC::CMPDI, dl, MVT::i64, LHS, in SelectCC()
2078 Opc = PPC::CMPD; in SelectCC()
2081 Opc = PPC::FCMPUS; in SelectCC()
2084 Opc = PPCSubTarget->hasVSX() ? PPC::XSCMPUDP : PPC::FCMPUD; in SelectCC()
2089 static PPC::Predicate getPredicateForSetCC(ISD::CondCode CC) { in getPredicateForSetCC()
2098 case ISD::SETEQ: return PPC::PRED_EQ; in getPredicateForSetCC()
2100 case ISD::SETNE: return PPC::PRED_NE; in getPredicateForSetCC()
2102 case ISD::SETLT: return PPC::PRED_LT; in getPredicateForSetCC()
2104 case ISD::SETLE: return PPC::PRED_LE; in getPredicateForSetCC()
2106 case ISD::SETGT: return PPC::PRED_GT; in getPredicateForSetCC()
2108 case ISD::SETGE: return PPC::PRED_GE; in getPredicateForSetCC()
2109 case ISD::SETO: return PPC::PRED_NU; in getPredicateForSetCC()
2110 case ISD::SETUO: return PPC::PRED_UN; in getPredicateForSetCC()
2112 case ISD::SETULT: return PPC::PRED_LT; in getPredicateForSetCC()
2113 case ISD::SETUGT: return PPC::PRED_GT; in getPredicateForSetCC()
2181 return HasVSX ? PPC::XVCMPEQSP : PPC::VCMPEQFP; in getVCmpInst()
2183 return PPC::XVCMPEQDP; in getVCmpInst()
2188 return HasVSX ? PPC::XVCMPGTSP : PPC::VCMPGTFP; in getVCmpInst()
2190 return PPC::XVCMPGTDP; in getVCmpInst()
2195 return HasVSX ? PPC::XVCMPGESP : PPC::VCMPGEFP; in getVCmpInst()
2197 return PPC::XVCMPGEDP; in getVCmpInst()
2225 return PPC::VCMPEQUB; in getVCmpInst()
2227 return PPC::VCMPEQUH; in getVCmpInst()
2229 return PPC::VCMPEQUW; in getVCmpInst()
2231 return PPC::VCMPEQUD; in getVCmpInst()
2235 return PPC::VCMPGTSB; in getVCmpInst()
2237 return PPC::VCMPGTSH; in getVCmpInst()
2239 return PPC::VCMPGTSW; in getVCmpInst()
2241 return PPC::VCMPGTSD; in getVCmpInst()
2245 return PPC::VCMPGTUB; in getVCmpInst()
2247 return PPC::VCMPGTUH; in getVCmpInst()
2249 return PPC::VCMPGTUW; in getVCmpInst()
2251 return PPC::VCMPGTUD; in getVCmpInst()
2278 Op = SDValue(CurDAG->getMachineNode(PPC::CNTLZW, dl, MVT::i32, Op), 0); in trySETCC()
2281 CurDAG->SelectNodeTo(N, PPC::RLWINM, MVT::i32, Ops); in trySETCC()
2287 SDValue(CurDAG->getMachineNode(PPC::ADDIC, dl, MVT::i32, MVT::Glue, in trySETCC()
2289 CurDAG->SelectNodeTo(N, PPC::SUBFE, MVT::i32, AD, Op, AD.getValue(1)); in trySETCC()
2295 CurDAG->SelectNodeTo(N, PPC::RLWINM, MVT::i32, Ops); in trySETCC()
2300 SDValue(CurDAG->getMachineNode(PPC::NEG, dl, MVT::i32, Op), 0); in trySETCC()
2301 T = SDValue(CurDAG->getMachineNode(PPC::ANDC, dl, MVT::i32, T, Op), 0); in trySETCC()
2304 CurDAG->SelectNodeTo(N, PPC::RLWINM, MVT::i32, Ops); in trySETCC()
2314 Op = SDValue(CurDAG->getMachineNode(PPC::ADDIC, dl, MVT::i32, MVT::Glue, in trySETCC()
2316 CurDAG->SelectNodeTo(N, PPC::ADDZE, MVT::i32, in trySETCC()
2317 SDValue(CurDAG->getMachineNode(PPC::LI, dl, in trySETCC()
2324 Op = SDValue(CurDAG->getMachineNode(PPC::NOR, dl, MVT::i32, Op, Op), 0); in trySETCC()
2325 SDNode *AD = CurDAG->getMachineNode(PPC::ADDIC, dl, MVT::i32, MVT::Glue, in trySETCC()
2327 CurDAG->SelectNodeTo(N, PPC::SUBFE, MVT::i32, SDValue(AD, 0), Op, in trySETCC()
2332 SDValue AD = SDValue(CurDAG->getMachineNode(PPC::ADDI, dl, MVT::i32, Op, in trySETCC()
2334 SDValue AN = SDValue(CurDAG->getMachineNode(PPC::AND, dl, MVT::i32, AD, in trySETCC()
2338 CurDAG->SelectNodeTo(N, PPC::RLWINM, MVT::i32, Ops); in trySETCC()
2344 Op = SDValue(CurDAG->getMachineNode(PPC::RLWINM, dl, MVT::i32, Ops), 0); in trySETCC()
2345 CurDAG->SelectNodeTo(N, PPC::XORI, MVT::i32, Op, getI32Imm(1, dl)); in trySETCC()
2371 CurDAG->SelectNodeTo(N, PPCSubTarget->hasVSX() ? PPC::XXLNOR : PPC::VNOR, in trySETCC()
2389 SDValue CR7Reg = CurDAG->getRegister(PPC::CR7, MVT::i32); in trySETCC()
2395 IntCR = SDValue(CurDAG->getMachineNode(PPC::MFOCRF, dl, MVT::i32, CR7Reg, in trySETCC()
2401 CurDAG->SelectNodeTo(N, PPC::RLWINM, MVT::i32, Ops); in trySETCC()
2407 SDValue(CurDAG->getMachineNode(PPC::RLWINM, dl, MVT::i32, Ops), 0); in trySETCC()
2408 CurDAG->SelectNodeTo(N, PPC::XORI, MVT::i32, Tmp, getI32Imm(1, dl)); in trySETCC()
2466 ReplaceNode(N, CurDAG->getMachineNode(PPC::MFOCRF, dl, MVT::i32, in Select()
2472 ReplaceNode(N, CurDAG->getMachineNode(PPC::ReadTB, dl, MVT::i32, MVT::i32, in Select()
2485 CurDAG->getMachineNode(PPC::SRADI, dl, MVT::i64, MVT::Glue, in Select()
2487 CurDAG->SelectNodeTo(N, PPC::ADDZE8, MVT::i64, SDValue(Op, 0), in Select()
2494 CurDAG->getMachineNode(PPC::SRAWI, dl, MVT::i32, MVT::Glue, in Select()
2496 CurDAG->SelectNodeTo(N, PPC::ADDZE, MVT::i32, SDValue(Op, 0), in Select()
2522 case MVT::f64: Opcode = PPC::LFDU; break; in Select()
2523 case MVT::f32: Opcode = PPC::LFSU; break; in Select()
2524 case MVT::i32: Opcode = PPC::LWZU; break; in Select()
2525 case MVT::i16: Opcode = isSExt ? PPC::LHAU : PPC::LHZU; break; in Select()
2527 case MVT::i8: Opcode = PPC::LBZU; break; in Select()
2534 case MVT::i64: Opcode = PPC::LDU; break; in Select()
2535 case MVT::i32: Opcode = PPC::LWZU8; break; in Select()
2536 case MVT::i16: Opcode = isSExt ? PPC::LHAU8 : PPC::LHZU8; break; in Select()
2538 case MVT::i8: Opcode = PPC::LBZU8; break; in Select()
2559 case MVT::v4f64: Opcode = PPC::QVLFDUX; break; // QPX in Select()
2560 case MVT::v4f32: Opcode = PPC::QVLFSUX; break; // QPX in Select()
2561 case MVT::f64: Opcode = PPC::LFDUX; break; in Select()
2562 case MVT::f32: Opcode = PPC::LFSUX; break; in Select()
2563 case MVT::i32: Opcode = PPC::LWZUX; break; in Select()
2564 case MVT::i16: Opcode = isSExt ? PPC::LHAUX : PPC::LHZUX; break; in Select()
2566 case MVT::i8: Opcode = PPC::LBZUX; break; in Select()
2574 case MVT::i64: Opcode = PPC::LDUX; break; in Select()
2575 case MVT::i32: Opcode = isSExt ? PPC::LWAUX : PPC::LWZUX8; break; in Select()
2576 case MVT::i16: Opcode = isSExt ? PPC::LHAUX8 : PPC::LHZUX8; break; in Select()
2578 case MVT::i8: Opcode = PPC::LBZUX8; break; in Select()
2605 CurDAG->SelectNodeTo(N, PPC::RLWINM, MVT::i32, Ops); in Select()
2616 CurDAG->SelectNodeTo(N, PPC::RLWINM, MVT::i32, Ops); in Select()
2639 CurDAG->SelectNodeTo(N, PPC::RLDICL, MVT::i64, Ops); in Select()
2671 ReplaceNode(N, CurDAG->getMachineNode(PPC::RLWIMI, dl, MVT::i32, Ops)); in Select()
2718 CurDAG->SelectNodeTo(N, PPC::RLWINM, MVT::i32, Ops); in Select()
2732 CurDAG->SelectNodeTo(N, PPC::RLWINM, MVT::i32, Ops); in Select()
2749 unsigned Opcode = (InVT == MVT::i64) ? PPC::ANDIo8 : PPC::ANDIo; in Select()
2754 SDValue CR0Reg = CurDAG->getRegister(PPC::CR0, MVT::i32); in Select()
2757 PPC::sub_eq : PPC::sub_gt, dl, MVT::i32); in Select()
2784 CurDAG->getMachineNode(PPC::ADDIC, dl, MVT::i32, MVT::Glue, in Select()
2786 CurDAG->SelectNodeTo(N, PPC::SUBFE, MVT::i32, SDValue(Tmp, 0), in Select()
2801 case 0: SRI = PPC::sub_lt; break; in Select()
2802 case 1: SRI = PPC::sub_gt; break; in Select()
2803 case 2: SRI = PPC::sub_eq; break; in Select()
2804 case 3: SRI = PPC::sub_un; break; in Select()
2809 SDValue NotCCBit(CurDAG->getMachineNode(PPC::CRNOR, dl, MVT::i1, in Select()
2814 SDValue CAndT(CurDAG->getMachineNode(PPC::CRAND, dl, MVT::i1, in Select()
2816 SDValue NotCAndF(CurDAG->getMachineNode(PPC::CRAND, dl, MVT::i1, in Select()
2819 CurDAG->SelectNodeTo(N, PPC::CROR, MVT::i1, CAndT, NotCAndF); in Select()
2827 SelectCCOp = PPC::SELECT_CC_I4; in Select()
2829 SelectCCOp = PPC::SELECT_CC_I8; in Select()
2832 SelectCCOp = PPC::SELECT_CC_VSSRC; in Select()
2834 SelectCCOp = PPC::SELECT_CC_F4; in Select()
2837 SelectCCOp = PPC::SELECT_CC_VSFRC; in Select()
2839 SelectCCOp = PPC::SELECT_CC_F8; in Select()
2841 SelectCCOp = PPC::SELECT_CC_QFRC; in Select()
2843 SelectCCOp = PPC::SELECT_CC_QSRC; in Select()
2845 SelectCCOp = PPC::SELECT_CC_QBRC; in Select()
2848 SelectCCOp = PPC::SELECT_CC_VSRC; in Select()
2850 SelectCCOp = PPC::SELECT_CC_VRRC; in Select()
2860 CurDAG->SelectNodeTo(N, PPC::XXSEL, N->getValueType(0), Ops); in Select()
2892 CurDAG->SelectNodeTo(N, PPC::LXVDSX, N->getValueType(0), Ops); in Select()
2909 CurDAG->SelectNodeTo(N, PPC::XXPERMDI, N->getValueType(0), Ops); in Select()
2919 ? (IsPPC64 ? PPC::BDNZ8 : PPC::BDNZ) in Select()
2920 : (IsPPC64 ? PPC::BDZ8 : PPC::BDZ), in Select()
2938 CurDAG->SelectNodeTo(N, PPC::BCC, MVT::Other, Ops); in Select()
2950 case PPC::PRED_LT: Opc = PPC::CRANDC; Swap = true; break; in Select()
2951 case PPC::PRED_LE: Opc = PPC::CRORC; Swap = true; break; in Select()
2952 case PPC::PRED_EQ: Opc = PPC::CREQV; Swap = false; break; in Select()
2953 case PPC::PRED_GE: Opc = PPC::CRORC; Swap = false; break; in Select()
2954 case PPC::PRED_GT: Opc = PPC::CRANDC; Swap = false; break; in Select()
2955 case PPC::PRED_NE: Opc = PPC::CRXOR; Swap = false; break; in Select()
2961 CurDAG->SelectNodeTo(N, PPC::BC, MVT::Other, BitComp, N->getOperand(4), in Select()
2972 CurDAG->SelectNodeTo(N, PPC::BCC, MVT::Other, Ops); in Select()
2979 unsigned Opc = Target.getValueType() == MVT::i32 ? PPC::MTCTR : PPC::MTCTR8; in Select()
2980 unsigned Reg = Target.getValueType() == MVT::i32 ? PPC::BCTR : PPC::BCTR8; in Select()
2991 SDNode *MN = CurDAG->getMachineNode(PPC::LWZtoc, dl, MVT::i32, GA, in Select()
3012 SDNode *Tmp = CurDAG->getMachineNode(PPC::ADDIStocHA, dl, MVT::i64, in Select()
3017 SDNode *MN = CurDAG->getMachineNode(PPC::LDtocL, dl, MVT::i64, GA, in Select()
3028 SDNode *MN = CurDAG->getMachineNode(PPC::LDtocL, dl, MVT::i64, GA, in Select()
3036 ReplaceNode(N, CurDAG->getMachineNode(PPC::ADDItocL, dl, MVT::i64, in Select()
3044 CurDAG->SelectNodeTo(N, PPC::PPC32PICGOT, in Select()
3062 Opc1 = PPC::VSPLTISB; in Select()
3063 Opc2 = PPC::VADDUBM; in Select()
3064 Opc3 = PPC::VSUBUBM; in Select()
3067 Opc1 = PPC::VSPLTISH; in Select()
3068 Opc2 = PPC::VADDUHM; in Select()
3069 Opc3 = PPC::VSUBUHM; in Select()
3073 Opc1 = PPC::VSPLTISW; in Select()
3074 Opc2 = PPC::VADDUWM; in Select()
3075 Opc3 = PPC::VSUBUWM; in Select()
3476 if (User->getMachineOpcode() != PPC::SELECT_I4 && in AllUsersSelectZero()
3477 User->getMachineOpcode() != PPC::SELECT_I8) in AllUsersSelectZero()
3484 if (Op2->getMachineOpcode() != PPC::LI && in AllUsersSelectZero()
3485 Op2->getMachineOpcode() != PPC::LI8) in AllUsersSelectZero()
3504 assert((User->getMachineOpcode() == PPC::SELECT_I4 || in SwapAllSelectUsers()
3505 User->getMachineOpcode() == PPC::SELECT_I8) && in SwapAllSelectUsers()
3547 case PPC::CRAND: in PeepholeCROps()
3548 case PPC::CRNAND: in PeepholeCROps()
3549 case PPC::CROR: in PeepholeCROps()
3550 case PPC::CRXOR: in PeepholeCROps()
3551 case PPC::CRNOR: in PeepholeCROps()
3552 case PPC::CREQV: in PeepholeCROps()
3553 case PPC::CRANDC: in PeepholeCROps()
3554 case PPC::CRORC: { in PeepholeCROps()
3557 if (Op.getMachineOpcode() == PPC::CRSET) in PeepholeCROps()
3559 else if (Op.getMachineOpcode() == PPC::CRUNSET) in PeepholeCROps()
3561 else if (Op.getMachineOpcode() == PPC::CRNOR && in PeepholeCROps()
3566 case PPC::BC: in PeepholeCROps()
3567 case PPC::BCn: in PeepholeCROps()
3568 case PPC::SELECT_I4: in PeepholeCROps()
3569 case PPC::SELECT_I8: in PeepholeCROps()
3570 case PPC::SELECT_F4: in PeepholeCROps()
3571 case PPC::SELECT_F8: in PeepholeCROps()
3572 case PPC::SELECT_QFRC: in PeepholeCROps()
3573 case PPC::SELECT_QSRC: in PeepholeCROps()
3574 case PPC::SELECT_QBRC: in PeepholeCROps()
3575 case PPC::SELECT_VRRC: in PeepholeCROps()
3576 case PPC::SELECT_VSFRC: in PeepholeCROps()
3577 case PPC::SELECT_VSSRC: in PeepholeCROps()
3578 case PPC::SELECT_VSRC: { in PeepholeCROps()
3581 if (Op.getMachineOpcode() == PPC::CRSET) in PeepholeCROps()
3583 else if (Op.getMachineOpcode() == PPC::CRUNSET) in PeepholeCROps()
3585 else if (Op.getMachineOpcode() == PPC::CRNOR && in PeepholeCROps()
3596 case PPC::CRAND: in PeepholeCROps()
3608 ResNode = CurDAG->getMachineNode(PPC::CRUNSET, SDLoc(MachineNode), in PeepholeCROps()
3612 ResNode = CurDAG->getMachineNode(PPC::CRANDC, SDLoc(MachineNode), in PeepholeCROps()
3618 ResNode = CurDAG->getMachineNode(PPC::CRANDC, SDLoc(MachineNode), in PeepholeCROps()
3623 ResNode = CurDAG->getMachineNode(PPC::CRNAND, SDLoc(MachineNode), in PeepholeCROps()
3629 case PPC::CRNAND: in PeepholeCROps()
3632 ResNode = CurDAG->getMachineNode(PPC::CRNOR, SDLoc(MachineNode), in PeepholeCROps()
3637 ResNode = CurDAG->getMachineNode(PPC::CRNOR, SDLoc(MachineNode), in PeepholeCROps()
3642 ResNode = CurDAG->getMachineNode(PPC::CRNOR, SDLoc(MachineNode), in PeepholeCROps()
3647 ResNode = CurDAG->getMachineNode(PPC::CRSET, SDLoc(MachineNode), in PeepholeCROps()
3651 ResNode = CurDAG->getMachineNode(PPC::CRORC, SDLoc(MachineNode), in PeepholeCROps()
3657 ResNode = CurDAG->getMachineNode(PPC::CRORC, SDLoc(MachineNode), in PeepholeCROps()
3662 ResNode = CurDAG->getMachineNode(PPC::CRAND, SDLoc(MachineNode), in PeepholeCROps()
3668 case PPC::CROR: in PeepholeCROps()
3674 ResNode = CurDAG->getMachineNode(PPC::CRSET, SDLoc(MachineNode), in PeepholeCROps()
3684 ResNode = CurDAG->getMachineNode(PPC::CRORC, SDLoc(MachineNode), in PeepholeCROps()
3690 ResNode = CurDAG->getMachineNode(PPC::CRORC, SDLoc(MachineNode), in PeepholeCROps()
3695 ResNode = CurDAG->getMachineNode(PPC::CRNOR, SDLoc(MachineNode), in PeepholeCROps()
3701 case PPC::CRXOR: in PeepholeCROps()
3704 ResNode = CurDAG->getMachineNode(PPC::CRUNSET, SDLoc(MachineNode), in PeepholeCROps()
3708 ResNode = CurDAG->getMachineNode(PPC::CRNOR, SDLoc(MachineNode), in PeepholeCROps()
3713 ResNode = CurDAG->getMachineNode(PPC::CRNOR, SDLoc(MachineNode), in PeepholeCROps()
3724 ResNode = CurDAG->getMachineNode(PPC::CREQV, SDLoc(MachineNode), in PeepholeCROps()
3730 ResNode = CurDAG->getMachineNode(PPC::CREQV, SDLoc(MachineNode), in PeepholeCROps()
3735 ResNode = CurDAG->getMachineNode(PPC::CREQV, SDLoc(MachineNode), in PeepholeCROps()
3741 case PPC::CRNOR: in PeepholeCROps()
3744 ResNode = CurDAG->getMachineNode(PPC::CRUNSET, SDLoc(MachineNode), in PeepholeCROps()
3748 ResNode = CurDAG->getMachineNode(PPC::CRNOR, SDLoc(MachineNode), in PeepholeCROps()
3753 ResNode = CurDAG->getMachineNode(PPC::CRNOR, SDLoc(MachineNode), in PeepholeCROps()
3758 ResNode = CurDAG->getMachineNode(PPC::CRANDC, SDLoc(MachineNode), in PeepholeCROps()
3764 ResNode = CurDAG->getMachineNode(PPC::CRANDC, SDLoc(MachineNode), in PeepholeCROps()
3769 ResNode = CurDAG->getMachineNode(PPC::CROR, SDLoc(MachineNode), in PeepholeCROps()
3775 case PPC::CREQV: in PeepholeCROps()
3778 ResNode = CurDAG->getMachineNode(PPC::CRSET, SDLoc(MachineNode), in PeepholeCROps()
3788 ResNode = CurDAG->getMachineNode(PPC::CRNOR, SDLoc(MachineNode), in PeepholeCROps()
3793 ResNode = CurDAG->getMachineNode(PPC::CRNOR, SDLoc(MachineNode), in PeepholeCROps()
3798 ResNode = CurDAG->getMachineNode(PPC::CRXOR, SDLoc(MachineNode), in PeepholeCROps()
3804 ResNode = CurDAG->getMachineNode(PPC::CRXOR, SDLoc(MachineNode), in PeepholeCROps()
3809 ResNode = CurDAG->getMachineNode(PPC::CRXOR, SDLoc(MachineNode), in PeepholeCROps()
3815 case PPC::CRANDC: in PeepholeCROps()
3818 ResNode = CurDAG->getMachineNode(PPC::CRUNSET, SDLoc(MachineNode), in PeepholeCROps()
3822 ResNode = CurDAG->getMachineNode(PPC::CRNOR, SDLoc(MachineNode), in PeepholeCROps()
3827 ResNode = CurDAG->getMachineNode(PPC::CRUNSET, SDLoc(MachineNode), in PeepholeCROps()
3834 ResNode = CurDAG->getMachineNode(PPC::CRNOR, SDLoc(MachineNode), in PeepholeCROps()
3840 ResNode = CurDAG->getMachineNode(PPC::CRAND, SDLoc(MachineNode), in PeepholeCROps()
3845 ResNode = CurDAG->getMachineNode(PPC::CRORC, SDLoc(MachineNode), in PeepholeCROps()
3851 case PPC::CRORC: in PeepholeCROps()
3854 ResNode = CurDAG->getMachineNode(PPC::CRSET, SDLoc(MachineNode), in PeepholeCROps()
3858 ResNode = CurDAG->getMachineNode(PPC::CRSET, SDLoc(MachineNode), in PeepholeCROps()
3865 ResNode = CurDAG->getMachineNode(PPC::CRNOR, SDLoc(MachineNode), in PeepholeCROps()
3870 ResNode = CurDAG->getMachineNode(PPC::CRNAND, SDLoc(MachineNode), in PeepholeCROps()
3876 ResNode = CurDAG->getMachineNode(PPC::CROR, SDLoc(MachineNode), in PeepholeCROps()
3881 ResNode = CurDAG->getMachineNode(PPC::CRANDC, SDLoc(MachineNode), in PeepholeCROps()
3887 case PPC::SELECT_I4: in PeepholeCROps()
3888 case PPC::SELECT_I8: in PeepholeCROps()
3889 case PPC::SELECT_F4: in PeepholeCROps()
3890 case PPC::SELECT_F8: in PeepholeCROps()
3891 case PPC::SELECT_QFRC: in PeepholeCROps()
3892 case PPC::SELECT_QSRC: in PeepholeCROps()
3893 case PPC::SELECT_QBRC: in PeepholeCROps()
3894 case PPC::SELECT_VRRC: in PeepholeCROps()
3895 case PPC::SELECT_VSFRC: in PeepholeCROps()
3896 case PPC::SELECT_VSSRC: in PeepholeCROps()
3897 case PPC::SELECT_VSRC: in PeepholeCROps()
3911 case PPC::BC: in PeepholeCROps()
3912 case PPC::BCn: in PeepholeCROps()
3914 ResNode = CurDAG->getMachineNode(Opcode == PPC::BC ? PPC::BCn : in PeepholeCROps()
3915 PPC::BC, in PeepholeCROps()
3960 if ((Op32.getMachineOpcode() == PPC::RLWINM || in PeepholePPC64ZExtGather()
3961 Op32.getMachineOpcode() == PPC::RLWNM) && in PeepholePPC64ZExtGather()
3968 if (Op32.getMachineOpcode() == PPC::SLW || in PeepholePPC64ZExtGather()
3969 Op32.getMachineOpcode() == PPC::SRW) { in PeepholePPC64ZExtGather()
3976 if (Op32.getMachineOpcode() == PPC::LI || in PeepholePPC64ZExtGather()
3977 Op32.getMachineOpcode() == PPC::LIS) { in PeepholePPC64ZExtGather()
3986 if (Op32.getMachineOpcode() == PPC::LHBRX || in PeepholePPC64ZExtGather()
3987 Op32.getMachineOpcode() == PPC::LWBRX) { in PeepholePPC64ZExtGather()
3993 if (Op32.getMachineOpcode() == PPC::CNTLZW) { in PeepholePPC64ZExtGather()
4002 if (Op32.getMachineOpcode() == PPC::RLWIMI && in PeepholePPC64ZExtGather()
4016 if (Op32.getMachineOpcode() == PPC::OR || in PeepholePPC64ZExtGather()
4017 Op32.getMachineOpcode() == PPC::SELECT_I4) { in PeepholePPC64ZExtGather()
4018 unsigned B = Op32.getMachineOpcode() == PPC::SELECT_I4 ? 1 : 0; in PeepholePPC64ZExtGather()
4033 if (Op32.getMachineOpcode() == PPC::ORI || in PeepholePPC64ZExtGather()
4034 Op32.getMachineOpcode() == PPC::ORIS) { in PeepholePPC64ZExtGather()
4048 if (Op32.getMachineOpcode() == PPC::AND) { in PeepholePPC64ZExtGather()
4071 if (Op32.getMachineOpcode() == PPC::ANDIo || in PeepholePPC64ZExtGather()
4072 Op32.getMachineOpcode() == PPC::ANDISo) { in PeepholePPC64ZExtGather()
4114 if (N->getMachineOpcode() != PPC::RLDICL) in PeepholePPC64ZExt()
4129 if (ISR.getConstantOperandVal(2) != PPC::sub_32) in PeepholePPC64ZExt()
4179 case PPC::RLWINM: NewOpcode = PPC::RLWINM8; break; in PeepholePPC64ZExt()
4180 case PPC::RLWNM: NewOpcode = PPC::RLWNM8; break; in PeepholePPC64ZExt()
4181 case PPC::SLW: NewOpcode = PPC::SLW8; break; in PeepholePPC64ZExt()
4182 case PPC::SRW: NewOpcode = PPC::SRW8; break; in PeepholePPC64ZExt()
4183 case PPC::LI: NewOpcode = PPC::LI8; break; in PeepholePPC64ZExt()
4184 case PPC::LIS: NewOpcode = PPC::LIS8; break; in PeepholePPC64ZExt()
4185 case PPC::LHBRX: NewOpcode = PPC::LHBRX8; break; in PeepholePPC64ZExt()
4186 case PPC::LWBRX: NewOpcode = PPC::LWBRX8; break; in PeepholePPC64ZExt()
4187 case PPC::CNTLZW: NewOpcode = PPC::CNTLZW8; break; in PeepholePPC64ZExt()
4188 case PPC::RLWIMI: NewOpcode = PPC::RLWIMI8; break; in PeepholePPC64ZExt()
4189 case PPC::OR: NewOpcode = PPC::OR8; break; in PeepholePPC64ZExt()
4190 case PPC::SELECT_I4: NewOpcode = PPC::SELECT_I8; break; in PeepholePPC64ZExt()
4191 case PPC::ORI: NewOpcode = PPC::ORI8; break; in PeepholePPC64ZExt()
4192 case PPC::ORIS: NewOpcode = PPC::ORIS8; break; in PeepholePPC64ZExt()
4193 case PPC::AND: NewOpcode = PPC::AND8; break; in PeepholePPC64ZExt()
4194 case PPC::ANDIo: NewOpcode = PPC::ANDIo8; break; in PeepholePPC64ZExt()
4195 case PPC::ANDISo: NewOpcode = PPC::ANDISo8; break; in PeepholePPC64ZExt()
4276 case PPC::LBZ: in PeepholePPC64()
4277 case PPC::LBZ8: in PeepholePPC64()
4278 case PPC::LD: in PeepholePPC64()
4279 case PPC::LFD: in PeepholePPC64()
4280 case PPC::LFS: in PeepholePPC64()
4281 case PPC::LHA: in PeepholePPC64()
4282 case PPC::LHA8: in PeepholePPC64()
4283 case PPC::LHZ: in PeepholePPC64()
4284 case PPC::LHZ8: in PeepholePPC64()
4285 case PPC::LWA: in PeepholePPC64()
4286 case PPC::LWZ: in PeepholePPC64()
4287 case PPC::LWZ8: in PeepholePPC64()
4291 case PPC::STB: in PeepholePPC64()
4292 case PPC::STB8: in PeepholePPC64()
4293 case PPC::STD: in PeepholePPC64()
4294 case PPC::STFD: in PeepholePPC64()
4295 case PPC::STFS: in PeepholePPC64()
4296 case PPC::STH: in PeepholePPC64()
4297 case PPC::STH8: in PeepholePPC64()
4298 case PPC::STW: in PeepholePPC64()
4299 case PPC::STW8: in PeepholePPC64()
4338 case PPC::ADDI8: in PeepholePPC64()
4339 case PPC::ADDI: in PeepholePPC64()
4347 if ((StorageOpcode == PPC::LWA || in PeepholePPC64()
4348 StorageOpcode == PPC::LD || in PeepholePPC64()
4349 StorageOpcode == PPC::STD) && in PeepholePPC64()
4354 case PPC::ADDIdtprelL: in PeepholePPC64()
4357 case PPC::ADDItlsldL: in PeepholePPC64()
4360 case PPC::ADDItocL: in PeepholePPC64()
4395 (StorageOpcode == PPC::LD || StorageOpcode == PPC::STD || in PeepholePPC64()
4396 StorageOpcode == PPC::LWA || (Offset % 4) != 0)) { in PeepholePPC64()