Skip to content
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

Merged
merged 5 commits into from
Nov 26, 2017

Conversation

scottmcm
Copy link
Member

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

@est31
Copy link
Member

est31 commented Nov 25, 2017

I was unsure how testing should work, and was unable to get the tests in /tests to even compile locally.

@scottmcm #160 (comment)

src/int/add.rs Outdated

#[test]
fn test_add() {
assert_eq!(rust_u128_add(1, 2), 3);
Copy link
Member

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.

@scottmcm scottmcm force-pushed the add-128bit-lang-items branch from ade18a5 to bcc41a9 Compare November 25, 2017 14:25
(I really don't understand how arithmetic makes it segfault...)
@alexcrichton
Copy link
Member

Thanks @scottmcm! Additionally thanks for the tests! Everything here looks fantastic to me

@alexcrichton alexcrichton merged commit 60d949b into rust-lang:master Nov 26, 2017
arielb1 pushed a commit to arielb1/rust that referenced this pull request Nov 30, 2017
…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
arielb1 pushed a commit to arielb1/rust that referenced this pull request Nov 30, 2017
…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
arielb1 pushed a commit to arielb1/rust that referenced this pull request Nov 30, 2017
…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
arielb1 pushed a commit to arielb1/rust that referenced this pull request Nov 30, 2017
…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
bors added a commit to rust-lang/rust that referenced this pull request Dec 3, 2017
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
tgross35 pushed a commit to tgross35/compiler-builtins that referenced this pull request Feb 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants