forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#115800 - RalfJung:miri, r=RalfJung
update Miri r? `@ghost`
- Loading branch information
Showing
16 changed files
with
1,935 additions
and
83 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
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 |
---|---|---|
@@ -1 +1 @@ | ||
a989e25f1b87949a886eab3da10324d14189fe95 | ||
366dab13f711df90a6891411458544199d159cbc |
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
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
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 |
---|---|---|
@@ -1 +1,45 @@ | ||
use crate::InterpResult; | ||
|
||
pub(super) mod sse; | ||
pub(super) mod sse2; | ||
|
||
/// Floating point comparison operation | ||
/// | ||
/// <https://www.felixcloutier.com/x86/cmpss> | ||
/// <https://www.felixcloutier.com/x86/cmpps> | ||
/// <https://www.felixcloutier.com/x86/cmpsd> | ||
/// <https://www.felixcloutier.com/x86/cmppd> | ||
#[derive(Copy, Clone)] | ||
enum FloatCmpOp { | ||
Eq, | ||
Lt, | ||
Le, | ||
Unord, | ||
Neq, | ||
/// Not less-than | ||
Nlt, | ||
/// Not less-or-equal | ||
Nle, | ||
/// Ordered, i.e. neither of them is NaN | ||
Ord, | ||
} | ||
|
||
impl FloatCmpOp { | ||
/// Convert from the `imm` argument used to specify the comparison | ||
/// operation in intrinsics such as `llvm.x86.sse.cmp.ss`. | ||
fn from_intrinsic_imm(imm: i8, intrinsic: &str) -> InterpResult<'_, Self> { | ||
match imm { | ||
0 => Ok(Self::Eq), | ||
1 => Ok(Self::Lt), | ||
2 => Ok(Self::Le), | ||
3 => Ok(Self::Unord), | ||
4 => Ok(Self::Neq), | ||
5 => Ok(Self::Nlt), | ||
6 => Ok(Self::Nle), | ||
7 => Ok(Self::Ord), | ||
imm => { | ||
throw_unsup_format!("invalid `imm` parameter of {intrinsic}: {imm}"); | ||
} | ||
} | ||
} | ||
} |
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
Oops, something went wrong.