-
Notifications
You must be signed in to change notification settings - Fork 218
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
Implement all the 128-bit operator lang items (Rust 45676 part 2) #210
Implement all the 128-bit operator lang items (Rust 45676 part 2) #210
Conversation
|
src/int/add.rs
Outdated
|
||
#[test] | ||
fn test_add() { | ||
assert_eq!(rust_u128_add(1, 2), 3); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you should put those into the tests/ directory, that's where all the other tests are. I guess one doesn't need to go the full way that most of the other tests do by autogenerating values though.
ade18a5
to
bcc41a9
Compare
(I really don't understand how arithmetic makes it segfault...)
Thanks @scottmcm! Additionally thanks for the tests! Everything here looks fantastic to me |
…s, r=nagisa Update compiler-builtins and use it in the 128-bit lowering MIR test This picks up the lang item implementations from rust-lang/compiler-builtins#210 cc rust-lang#45676 @est31 @nagisa
…s, r=nagisa Update compiler-builtins and use it in the 128-bit lowering MIR test This picks up the lang item implementations from rust-lang/compiler-builtins#210 cc rust-lang#45676 @est31 @nagisa
…s, r=nagisa Update compiler-builtins and use it in the 128-bit lowering MIR test This picks up the lang item implementations from rust-lang/compiler-builtins#210 cc rust-lang#45676 @est31 @nagisa
…s, r=nagisa Update compiler-builtins and use it in the 128-bit lowering MIR test This picks up the lang item implementations from rust-lang/compiler-builtins#210 cc rust-lang#45676 @est31 @nagisa
Update compiler-builtins and use it in the 128-bit lowering MIR test This picks up the lang item implementations from rust-lang/compiler-builtins#210 cc #45676 @est31 @nagisa
Remove most `#[inline]` annotations
rust-lang/rust#46093 declared lang items for all the 128-bit operators. This PR implements them.
I was unsure how testing should work, and was unable to get the tests in
/tests
to even compile locally.cc rust-lang/rust#45676 @nagisa @est31