Lines Matching full:csky
1 //===-- CSKYISelDAGToDAG.cpp - A dag to dag inst selector for CSKY---------===//
9 // This file defines an instruction selector for the CSKY target.
13 #include "CSKY.h"
23 #define DEBUG_TYPE "csky-isel"
24 #define PASS_NAME "CSKY DAG->DAG Pattern Instruction Selection"
102 ReplaceNode(N, CurDAG->getMachineNode(Subtarget->hasE2() ? CSKY::ADDI32 in INITIALIZE_PASS()
103 : CSKY::ADDI16XZ, in INITIALIZE_PASS()
193 if ((!IsTiedToChangedOp && (!HasRC || RC != CSKY::GPRRegClassID)) || in selectInlineAsm()
209 Register GPVR = MRI.createVirtualRegister(&CSKY::GPRPairRegClass); in selectInlineAsm()
219 CurDAG->getTargetExtractSubreg(CSKY::sub32_0, dl, MVT::i32, RegCopy); in selectInlineAsm()
221 CurDAG->getTargetExtractSubreg(CSKY::sub32_32, dl, MVT::i32, RegCopy); in selectInlineAsm()
244 Register GPVR = MRI.createVirtualRegister(&CSKY::GPRPairRegClass); in selectInlineAsm()
261 Flag.setRegClass(CSKY::GPRPairRegClassID); in selectInlineAsm()
293 SDValue V1 = SDValue(CurDAG->getMachineNode(CSKY::FMFVRL_D, Dl, VT, V), 0); in selectBITCAST_TO_LOHI()
294 SDValue V2 = SDValue(CurDAG->getMachineNode(CSKY::FMFVRH_D, Dl, VT, V), 0); in selectBITCAST_TO_LOHI()
315 Subtarget->has2E3() ? CSKY::CLRC32 : CSKY::CLRC16, Dl, Type1); in selectAddCarry()
317 Subtarget->has2E3() ? CSKY::ADDC32 : CSKY::ADDC16, Dl, {Type0, Type1}, in selectAddCarry()
321 Subtarget->has2E3() ? CSKY::SETC32 : CSKY::SETC16, Dl, Type1); in selectAddCarry()
323 Subtarget->has2E3() ? CSKY::ADDC32 : CSKY::ADDC16, Dl, {Type0, Type1}, in selectAddCarry()
326 NewNode = CurDAG->getMachineNode(Subtarget->has2E3() ? CSKY::ADDC32 in selectAddCarry()
327 : CSKY::ADDC16, in selectAddCarry()
337 DAG->getMachineNode(Subtarget->has2E3() ? CSKY::MVCV32 : CSKY::MVCV16, Dl, in InvertCarryFlag()
340 DAG->getMachineNode(Subtarget->hasE2() ? CSKY::BTSTI32 : CSKY::BTSTI16, in InvertCarryFlag()
358 Subtarget->has2E3() ? CSKY::SETC32 : CSKY::SETC16, Dl, Type1); in selectSubCarry()
360 Subtarget->has2E3() ? CSKY::SUBC32 : CSKY::SUBC16, Dl, {Type0, Type1}, in selectSubCarry()
364 Subtarget->has2E3() ? CSKY::CLRC32 : CSKY::CLRC16, Dl, Type1); in selectSubCarry()
366 Subtarget->has2E3() ? CSKY::SUBC32 : CSKY::SUBC16, Dl, {Type0, Type1}, in selectSubCarry()
370 NewNode = CurDAG->getMachineNode(Subtarget->has2E3() ? CSKY::SUBC32 in selectSubCarry()
371 : CSKY::SUBC16, in selectSubCarry()
386 CurDAG->getTargetConstant(CSKY::GPRPairRegClassID, dl, MVT::i32); in createGPRPairNode()
387 SDValue SubReg0 = CurDAG->getTargetConstant(CSKY::sub32_0, dl, MVT::i32); in createGPRPairNode()
388 SDValue SubReg1 = CurDAG->getTargetConstant(CSKY::sub32_32, dl, MVT::i32); in createGPRPairNode()