@@ -1013,6 +1013,16 @@ void SelectionDAGLegalize::LegalizeOp(SDNode *Node) {
1013
1013
Action = TLI.getOperationAction (Node->getOpcode (),
1014
1014
Node->getOperand (0 ).getValueType ());
1015
1015
break ;
1016
+ case ISD::STRICT_LRINT:
1017
+ case ISD::STRICT_LLRINT:
1018
+ case ISD::STRICT_LROUND:
1019
+ case ISD::STRICT_LLROUND:
1020
+ // These pseudo-ops are the same as the other STRICT_ ops except
1021
+ // they are registered with setOperationAction() using the input type
1022
+ // instead of the output type.
1023
+ Action = TLI.getStrictFPOperationAction (Node->getOpcode (),
1024
+ Node->getOperand (1 ).getValueType ());
1025
+ break ;
1016
1026
case ISD::SIGN_EXTEND_INREG: {
1017
1027
EVT InnerType = cast<VTSDNode>(Node->getOperand (1 ))->getVT ();
1018
1028
Action = TLI.getOperationAction (Node->getOpcode (), InnerType);
@@ -1105,16 +1115,6 @@ void SelectionDAGLegalize::LegalizeOp(SDNode *Node) {
1105
1115
return ;
1106
1116
}
1107
1117
break ;
1108
- case ISD::STRICT_LRINT:
1109
- case ISD::STRICT_LLRINT:
1110
- case ISD::STRICT_LROUND:
1111
- case ISD::STRICT_LLROUND:
1112
- // These pseudo-ops are the same as the other STRICT_ ops except
1113
- // they are registered with setOperationAction() using the input type
1114
- // instead of the output type.
1115
- Action = TLI.getStrictFPOperationAction (Node->getOpcode (),
1116
- Node->getOperand (1 ).getValueType ());
1117
- break ;
1118
1118
case ISD::SADDSAT:
1119
1119
case ISD::UADDSAT:
1120
1120
case ISD::SSUBSAT:
0 commit comments