diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2020-11-27 20:48:53 +0100 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2020-11-27 20:48:53 +0100 |
| commit | 477aa678021086d4fd07d8c738be51683c314231 (patch) | |
| tree | 971370a0682f0e551bb1d38ec276ba7237ed89d1 /compiler/rustc_codegen_cranelift/example/std_example.rs | |
| parent | 774bce7f5e9d0cc99a30cf37be5d175a3b530beb (diff) | |
| parent | 5988bbd24aa87732bfa1d111ba00bcdaa22c481a (diff) | |
| download | rust-477aa678021086d4fd07d8c738be51683c314231.tar.gz rust-477aa678021086d4fd07d8c738be51683c314231.zip | |
Merge commit '5988bbd24aa87732bfa1d111ba00bcdaa22c481a' into sync_cg_clif-2020-11-27
Diffstat (limited to 'compiler/rustc_codegen_cranelift/example/std_example.rs')
| -rw-r--r-- | compiler/rustc_codegen_cranelift/example/std_example.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_cranelift/example/std_example.rs b/compiler/rustc_codegen_cranelift/example/std_example.rs index cb512a4aa33..b38e25328a4 100644 --- a/compiler/rustc_codegen_cranelift/example/std_example.rs +++ b/compiler/rustc_codegen_cranelift/example/std_example.rs @@ -53,6 +53,7 @@ fn main() { assert_eq!(0b0000000000000000000000000010000010000000000000000000000000000000_0000000000100000000000000000000000001000000000000100000000000000u128.leading_zeros(), 26); assert_eq!(0b0000000000000000000000000010000000000000000000000000000000000000_0000000000000000000000000000000000001000000000000000000010000000u128.trailing_zeros(), 7); + assert_eq!(core::intrinsics::saturating_sub(0, -170141183460469231731687303715884105728i128), 170141183460469231731687303715884105727i128); let _d = 0i128.checked_div(2i128); let _d = 0u128.checked_div(2u128); |
