Thanks to visit codestin.com
Credit goes to github.com

Skip to content

WASM_X64: Support Integer Operations #1360

New issue

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

Merged
merged 2 commits into from
Dec 15, 2022

Conversation

ubaidsk
Copy link
Collaborator

@ubaidsk ubaidsk commented Dec 13, 2022

This PR adds support add, sub, mul and div operations in the wasm_x64 backend.

@ubaidsk
Copy link
Collaborator Author

ubaidsk commented Dec 13, 2022

Example:

$ cat examples/expr2.py 
def main0():
    print((2+3)*5)

main0()
$ lpython examples/expr2.py --backend wasm_x64 -o tmp
Call to print_i32() will be printed as exit code
Call to flush_buf() is not yet supported
$ ./tmp
$ echo $?
25
$ 

@ubaidsk ubaidsk marked this pull request as ready for review December 13, 2022 21:40
@ubaidsk
Copy link
Collaborator Author

ubaidsk commented Dec 13, 2022

This is ready. Please possibly review and please share feedback.

@certik certik merged commit aa90263 into lcompilers:main Dec 15, 2022
@ubaidsk ubaidsk deleted the wasm_x64_int_operations branch December 16, 2022 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants