-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
u256 add operator #4896
u256 add operator #4896
Conversation
test/src/e2e_vm_tests/test_programs/should_fail/u256/.gitignore
Outdated
Show resolved
Hide resolved
test/src/e2e_vm_tests/test_programs/should_pass/language/u256/.gitignore
Outdated
Show resolved
Hide resolved
A unit test framework already exists to test this, in We're beginning to have testing frameworks that pretty much do the same thing in multiple places. That's going to be confusing to new developers and hard to maintain. |
Never realised those tests existed. Moved everything there. |
c15b9ca
to
23cb071
Compare
Description
This PR is part of #4794. It implements support for u256 add operators.
The IR generated is a vanilla
add
operator as any other integer.This will then be transformed by
miscdemotion
pass to something like:Mind the
wide add
here. It is a Fuel specific operation, giving space to other targets to implement this differently.Checklist
Breaking*
orNew Feature
labels where relevant.