We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use wasmer-python to execute the following wat file:
(module (func (result v128) v128.const f32x4 0 0 0 0 f32x4.abs v128.not) (export "func1" (func 0)) )
The python file is :
import os from wasmer import engine, wat2wasm, Store, Module, Instance # from wasmer_compiler_cranelift import Compiler from wasmer_compiler_llvm import Compiler # from wasmer_compiler_singlepass import engine = engine.Universal(Compiler) # Create a store, that holds the engine. store = Store(engine) # Let's compile the Wasm module with the Cranelift compiler. __dir__ = os.path.dirname(os.path.realpath(__file__)) module = Module(Store(), open(__dir__ + '/../A2-2.wasm', 'rb').read()) # Let's instantiate the Wasm module. instance = Instance(module) # Let's call the `sum` exported function. func1 = instance.exports.func1 results = func1() print(results)
python test.py
If applicable, add a link to a test case (as a zip file or link to a repository we can clone).
Print 340282366920938463463374607431768211455
Print 0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Use wasmer-python to execute the following wat file:
The python file is :
Steps to reproduce
python test.py
If applicable, add a link to a test case (as a zip file or link to a repository we can clone).
Expected behavior
Print 340282366920938463463374607431768211455
Actual behavior
Print 0
The text was updated successfully, but these errors were encountered: