Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Unified Diff: test/cctest/wasm/test-run-wasm.cc

Issue 2639353002: [wasm] Fix I32ReinterpretF32 and I64ReinterpretF64 on ia32. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 2fa1c10f660e825a86c475807efd003e635644bb..9d787ad4ddafe834a5ad56bb5f2fe2ba0a432a3b 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);

Powered by Google App Engine
This is Rietveld 408576698