diff options
Diffstat (limited to 'test/noffi_f32.asm.js')
-rw-r--r-- | test/noffi_f32.asm.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/noffi_f32.asm.js b/test/noffi_f32.asm.js new file mode 100644 index 000000000..cc7a47972 --- /dev/null +++ b/test/noffi_f32.asm.js @@ -0,0 +1,21 @@ +function(global, env, buffer) { + "use asm"; + var Math_fround=global.Math.fround; + var importf=env._importf; + + function exportf(a){ + a=Math_fround(a); + return Math_fround(a+Math_fround(1.0)) + } + function main(){ + Math_fround(importf(Math_fround(3.4000000953674316))); + return 0 + } + + return{ + main:main, + exportf:exportf} +} + +; + |