about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorAkos Kiss <akiss@inf.u-szeged.hu>2014-12-12 23:39:27 +0000
committerAkos Kiss <akiss@inf.u-szeged.hu>2015-01-03 15:16:10 +0000
commit6e5fb8bd1bef7a36c32194b35ec16d0365adbcf1 (patch)
treeb6bbb41f6e5b897a93ffb89d1603ab7c16096cf1 /src/libcore
parentfc2ba13939aa9672d886beb06efde7aeda2d5f7f (diff)
downloadrust-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.rs8
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;