maybe-fjcvtzs.js (447B)
1 // |jit-test| skip-if: !hasDisassembler() || !getBuildConfiguration("arm64") || !this.getJitCompilerOptions() || !getJitCompilerOptions()['ion.enable'] 2 3 function checkAssembly() { 4 let output = disnative(f); 5 if (/backend=ion/.test(output)) { 6 assertEq(/fcvtzs/.test(output) != /fjcvtzs/.test(output), true); 7 } 8 } 9 10 function f(x) { 11 if (inIon()) { 12 checkAssembly(); 13 return 0; 14 } 15 return x | 0; 16 } 17 18 let i = 1.5; 19 while (f(i += 1)) {};