diff options
| author | Akos Kiss <akiss@inf.u-szeged.hu> | 2014-12-12 23:39:27 +0000 |
|---|---|---|
| committer | Akos Kiss <akiss@inf.u-szeged.hu> | 2015-01-03 15:16:10 +0000 |
| commit | 6e5fb8bd1bef7a36c32194b35ec16d0365adbcf1 (patch) | |
| tree | b6bbb41f6e5b897a93ffb89d1603ab7c16096cf1 /src/libcore | |
| parent | fc2ba13939aa9672d886beb06efde7aeda2d5f7f (diff) | |
| download | rust-6e5fb8bd1bef7a36c32194b35ec16d0365adbcf1.tar.gz rust-6e5fb8bd1bef7a36c32194b35ec16d0365adbcf1.zip | |
Initial version of AArch64 support.
Adds AArch64 knowledge to: * configure, * make files, * sources, * tests, and * documentation.
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/hash/sip.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/libcore/hash/sip.rs b/src/libcore/hash/sip.rs index 70feb3e80cc..020f0f6de9b 100644 --- a/src/libcore/hash/sip.rs +++ b/src/libcore/hash/sip.rs @@ -1,4 +1,4 @@ -// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT +// Copyright 2012-2015 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // @@ -419,6 +419,12 @@ mod tests { } } + #[test] #[cfg(target_arch = "aarch64")] + fn test_hash_uint() { + let val = 0xdeadbeef_deadbeef_u64; + assert_eq!(hash(&(val as u64)), hash(&(val as uint))); + assert!(hash(&(val as u32)) != hash(&(val as uint))); + } #[test] #[cfg(target_arch = "arm")] fn test_hash_uint() { let val = 0xdeadbeef_deadbeef_u64; |
