blob: 565af736c011f2205685e0a2c469d87925281a91 [file] [log] [blame]
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
let asmHeap = new ArrayBuffer(1 << 20);
let m1 = function (stdlib, foreign, heap) {
'use asm';
function f(d0) {
d0 = +d0;
return 1 % ~~d0 | 0;
}
return f;
}({}, {}, asmHeap);
m2 = function (stdlib, foreign, heap) {
'use asm';
function f(d0) {
d0 = +d0;
return 1 % (~~d0 >>> 0) | 0;
}
return f;
}({}, {}, asmHeap);
print(m1(4294967295));
print(m1(4294967295));
print(m2(4294967295));
print(m2(4294967295));