Skip to content

Commit

Permalink
Move and update saturating intrinsics (#853)
Browse files Browse the repository at this point in the history
* Move and update saturating intrinsics

* Add small test description
  • Loading branch information
adpaco-aws authored Feb 22, 2022
1 parent fdc17eb commit 19363f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0 OR MIT

// Check that `saturating_add` and `saturating_sub` are supported and return the
// expected results.

#![feature(core_intrinsics)]
use std::intrinsics;

Expand Down Expand Up @@ -54,10 +58,12 @@ fn main() {
test_saturating_intrinsics!(u16);
test_saturating_intrinsics!(u32);
test_saturating_intrinsics!(u64);
test_saturating_intrinsics!(u128);
test_saturating_intrinsics!(usize);
test_saturating_intrinsics!(i8);
test_saturating_intrinsics!(i16);
test_saturating_intrinsics!(i32);
test_saturating_intrinsics!(i64);
test_saturating_intrinsics!(i128);
test_saturating_intrinsics!(isize);
}
12 changes: 0 additions & 12 deletions tests/kani/SaturatingIntrinsics/add_128.rs

This file was deleted.

0 comments on commit 19363f0

Please sign in to comment.