-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
crucible-mir: Use correct identifiers for TransCustom intrinsics (#1158)
This uses the correct identifiers for intrinsics, such as `core::intrinsics::{extern}::rotate_left`. Previously, the `"{extern}"` portion was written as `""` due to an oversight. Fixes #1129.
- Loading branch information
1 parent
976f1d6
commit c35e535
Showing
2 changed files
with
26 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
//! Regression test for missing override for the `rotate_left` intrinsic | ||
#[cfg_attr(crux, crux::test)] | ||
fn crux_test() -> u32 { | ||
let n: u32 = 0x10000b3u32; | ||
let expected = 0xb301; | ||
let actual = n.rotate_left(8); | ||
assert!(expected == actual); | ||
actual | ||
} | ||
|
||
pub fn main() { | ||
println!("{:?}", crux_test()); | ||
} |