Index: src/compiler/effect-control-linearizer.cc |
diff --git a/src/compiler/effect-control-linearizer.cc b/src/compiler/effect-control-linearizer.cc |
index 4215dd22b3a3e5264564e1b027d11d7a3203828a..ec21247bfc8c30d5b8a6efb5c794c5cd41e2c51f 100644 |
--- a/src/compiler/effect-control-linearizer.cc |
+++ b/src/compiler/effect-control-linearizer.cc |
@@ -293,8 +293,7 @@ EffectControlLinearizer::LowerChangeFloat64ToTagged(Node* node, Node* effect, |
Node* control) { |
Node* value = node->InputAt(0); |
- Node* value32 = graph()->NewNode( |
- machine()->TruncateFloat64ToInt32(TruncationMode::kRoundToZero), value); |
+ Node* value32 = graph()->NewNode(machine()->RoundFloat64ToInt32(), value); |
Node* check_same = graph()->NewNode( |
machine()->Float64Equal(), value, |
graph()->NewNode(machine()->ChangeInt32ToFloat64(), value32)); |