Index: src/compiler/wasm-compiler.cc |
diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc |
index 1e196ef0fc2b974178cce8f5d847deda3f226b97..e37a98757a94b579d74b9b00041366ac2fa04e65 100644 |
--- a/src/compiler/wasm-compiler.cc |
+++ b/src/compiler/wasm-compiler.cc |
@@ -538,7 +538,7 @@ Node* WasmGraphBuilder::Binop(wasm::WasmOpcode opcode, Node* left, Node* right, |
op = m->Float32Add(); |
break; |
case wasm::kExprF32Sub: |
- op = m->Float32Sub(); |
+ op = m->Float32SubPreserveNan(); |
break; |
case wasm::kExprF32Mul: |
op = m->Float32Mul(); |
@@ -569,7 +569,7 @@ Node* WasmGraphBuilder::Binop(wasm::WasmOpcode opcode, Node* left, Node* right, |
op = m->Float64Add(); |
break; |
case wasm::kExprF64Sub: |
- op = m->Float64Sub(); |
+ op = m->Float64SubPreserveNan(); |
break; |
case wasm::kExprF64Mul: |
op = m->Float64Mul(); |