summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/directiveless/bug1664979.js
blob: e6b8bd7c3c7cdeec26a376a1b6c296269f557d46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// |jit-test| --fuzzing-safe; --ion-offthread-compile=off; skip-if: !wasmIsSupported()

var all = [undefined, null, ];
function AsmModule(stdlib) {
    "use asm";
    var fround = stdlib.Math.fround;
    function fltConvNot(y38) {
        y38 = fround(y38);
        var i38 = 0;
        i38 = ~((~~y38) | 0);
        return (!!i38) | 0;
    }
    return {
        fltConvNot: fltConvNot,
    };
}
var asmModule = AsmModule({
    Math: Math
});
for (var i38 = 0; i38 < 10; ++i38)
  asmModule.fltConvNot(all[i38])