Index: test/cctest/wasm/test-run-wasm.cc |
diff --git a/test/cctest/wasm/test-run-wasm.cc b/test/cctest/wasm/test-run-wasm.cc |
index a5f7ddec2b7833e12659842f6add1e06a4372d7c..5cc6b5a42514629c6d867d09b3575e625fe379a4 100644 |
--- a/test/cctest/wasm/test-run-wasm.cc |
+++ b/test/cctest/wasm/test-run-wasm.cc |
@@ -1048,6 +1048,16 @@ WASM_EXEC_TEST(I32ReinterpretF32) { |
} |
} |
+WASM_EXEC_TEST(SignallingNanSurvivesI32ReinterpretF32) { |
+ WasmRunner<int32_t> r(execution_mode); |
+ |
+ BUILD(r, WASM_I32_REINTERPRET_F32( |
+ WASM_SEQ(kExprF32Const, 0x00, 0x00, 0xa0, 0x7f))); |
+ |
+ // This is a signalling nan. |
+ CHECK_EQ(0x7fa00000, r.Call()); |
+} |
+ |
WASM_EXEC_TEST_WITH_TRAP(LoadMaxUint32Offset) { |
WasmRunner<int32_t> r(execution_mode); |
r.module().AddMemoryElems<int32_t>(8); |