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

Initial version of AArch64 support. #20017

Closed
wants to merge 1 commit into from

Conversation

akosthekiss
Copy link
Contributor

There are still some FIXMEs in the code (around thread locals and stack protection) but rustc already passes most of the tests on AArch64:
summary of 41 test runs: 8265 passed; 1 failed; 542 ignored; 0 measured.

Needs #19790 and rust-lang/compiler-rt#5 .

@rust-highfive
Copy link
Contributor

r? @pcwalton

(rust_highfive has picked a reviewer for you, use r? to override)

@richo
Copy link
Contributor

richo commented Dec 19, 2014

Thanks for this- I'm working on a power port and this is a pretty good todo list for things I have left!

let val = 0xdeadbeef_deadbeef_u64;
assert_eq!(hash(&(val as u64)), hash(&(val as uint)));
assert!(hash(&(val as u32)) != hash(&(val as uint)));
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't the 32-bit and 64-bit architectures reuse the same tests, one for each?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems/seemed to me that they could. However, I didn't want/dare to go against the practice I found here: fn test_hash_uint() is already cloned for arm and x86 targets, that's why I added a new version for aarch64, cloning the x86_64 version. Shall the refactoring (merging the clones) be part of this patch (which will make it not purely aarch64-focused)?

@alexcrichton
Copy link
Member

@akiss77 would you mind rolling this into #19790? (same comment here)

@akosthekiss
Copy link
Contributor Author

Rolled, so closing this PR as well.

@akosthekiss akosthekiss deleted the pr-aarch64-src branch January 3, 2015 16:09
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.

6 participants