| 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;
|
|
|