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

Unified Diff: test/mjsunit/wasm/asm-wasm.js

Issue 2552243002: [wasm][asm.js] Fix errata 5.4, allow fround on int literal.s (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « src/asmjs/asm-typer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/wasm/asm-wasm.js
diff --git a/test/mjsunit/wasm/asm-wasm.js b/test/mjsunit/wasm/asm-wasm.js
index 0507b128c37840e2edf7633bae92415a4ad575ea..e7124f86744f6a71dc837bb82be91aea2320aa45 100644
--- a/test/mjsunit/wasm/asm-wasm.js
+++ b/test/mjsunit/wasm/asm-wasm.js
@@ -1649,6 +1649,19 @@ function TestDotfulFloat(stdlib) {
assertWasm(55, TestDotfulFloat);
+function TestDotfulLocalFloat(stdlib) {
+ "use asm";
+ var fround = stdlib.Math.fround;
+ function caller() {
+ var foo = fround(55.0);
+ return +foo;
+ }
+ return {caller: caller};
+}
+
+assertWasm(55, TestDotfulLocalFloat);
+
+
function TestDotlessFloat(stdlib) {
"use asm";
var fround = stdlib.Math.fround;
@@ -1662,6 +1675,19 @@ function TestDotlessFloat(stdlib) {
assertWasm(55, TestDotlessFloat);
+function TestDotlessLocalFloat(stdlib) {
+ "use asm";
+ var fround = stdlib.Math.fround;
+ function caller() {
+ var foo = fround(55);
+ return +foo;
+ }
+ return {caller: caller};
+}
+
+assertWasm(55, TestDotlessLocalFloat);
+
+
function TestFloatGlobals(stdlib) {
"use asm";
var fround = stdlib.Math.fround;
« no previous file with comments | « src/asmjs/asm-typer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698