| Index: test/mjsunit/compiler/regress-445858.js
|
| diff --git a/test/mjsunit/asm/float32array-store-div.js b/test/mjsunit/compiler/regress-445858.js
|
| similarity index 50%
|
| copy from test/mjsunit/asm/float32array-store-div.js
|
| copy to test/mjsunit/compiler/regress-445858.js
|
| index 78224f962b7971f2b86a5381e98e2bbd2c63ca13..b2214ea0f269fe93c20be9fb600ad7162d528d37 100644
|
| --- a/test/mjsunit/asm/float32array-store-div.js
|
| +++ b/test/mjsunit/compiler/regress-445858.js
|
| @@ -2,15 +2,14 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -function Module(stdlib, foreign, heap) {
|
| +var foo = (function module(stdlib, foreign, heap) {
|
| "use asm";
|
| - var MEM32 = new stdlib.Float32Array(heap);
|
| + var MEM = new stdlib.Int8Array(heap);
|
| function foo(i) {
|
| - MEM32[0] = (i >>> 0) / 2;
|
| - return MEM32[0];
|
| + i = i|0;
|
| + i[0] = i;
|
| + return MEM[i + 1 >> 0]|0;
|
| }
|
| return { foo: foo };
|
| -}
|
| -
|
| -var foo = Module(this, {}, new ArrayBuffer(64 * 1024)).foo;
|
| -assertEquals(0.5, foo(1));
|
| +})(this, {}, new ArrayBuffer(64 * 1024)).foo;
|
| +foo(-1);
|
|
|