forked from OSchip/llvm-project
[X86] Add chain in ISel for x86_tdpbssd_internal intrinsic.
This commit is contained in:
parent
0e5bfffb13
commit
e52bc1d2bb
|
@ -4601,6 +4601,7 @@ void X86DAGToDAGISel::Select(SDNode *Node) {
|
||||||
case Intrinsic::x86_tdpbssd_internal: {
|
case Intrinsic::x86_tdpbssd_internal: {
|
||||||
if (!Subtarget->hasAMXTILE())
|
if (!Subtarget->hasAMXTILE())
|
||||||
break;
|
break;
|
||||||
|
SDValue Chain = Node->getOperand(0);
|
||||||
unsigned Opc = X86::PTDPBSSDV;
|
unsigned Opc = X86::PTDPBSSDV;
|
||||||
SDValue CFG = CurDAG->getRegister(0, MVT::Untyped);
|
SDValue CFG = CurDAG->getRegister(0, MVT::Untyped);
|
||||||
SDValue Ops[] = {Node->getOperand(2),
|
SDValue Ops[] = {Node->getOperand(2),
|
||||||
|
@ -4609,7 +4610,8 @@ void X86DAGToDAGISel::Select(SDNode *Node) {
|
||||||
Node->getOperand(5),
|
Node->getOperand(5),
|
||||||
Node->getOperand(6),
|
Node->getOperand(6),
|
||||||
Node->getOperand(7),
|
Node->getOperand(7),
|
||||||
CFG};
|
CFG,
|
||||||
|
Chain};
|
||||||
MachineSDNode *CNode =
|
MachineSDNode *CNode =
|
||||||
CurDAG->getMachineNode(Opc, dl, {MVT::v256i32, MVT::Other}, Ops);
|
CurDAG->getMachineNode(Opc, dl, {MVT::v256i32, MVT::Other}, Ops);
|
||||||
ReplaceNode(Node, CNode);
|
ReplaceNode(Node, CNode);
|
||||||
|
|
Loading…
Reference in New Issue