Skip to content

Commit 8a5f7f2

Browse files
committed
Fix a few typos in shims/x86/sse.rs comments
1 parent 6e4fd87 commit 8a5f7f2

File tree

1 file changed

+4
-4
lines changed
  • src/tools/miri/src/shims/x86

1 file changed

+4
-4
lines changed

src/tools/miri/src/shims/x86/sse.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
7878

7979
unary_op_ss(this, which, op, dest)?;
8080
}
81-
// Used to implement _mm_{sqrt,rcp,rsqrt}_ss functions.
81+
// Used to implement _mm_{sqrt,rcp,rsqrt}_ps functions.
8282
// Performs the operations on all components of `op`.
8383
"sqrt.ps" | "rcp.ps" | "rsqrt.ps" => {
8484
let [op] = this.check_shim(abi, Abi::C { unwind: false }, link_name, args)?;
@@ -146,7 +146,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
146146

147147
bin_op_ps(this, which, left, right, dest)?;
148148
}
149-
// Used to implement _mm_{,u}comi{eq,lt,le,gt,ge,neq}_ps functions.
149+
// Used to implement _mm_{,u}comi{eq,lt,le,gt,ge,neq}_ss functions.
150150
// Compares the first component of `left` and `right` and returns
151151
// a scalar value (0 or 1).
152152
"comieq.ss" | "comilt.ss" | "comile.ss" | "comigt.ss" | "comige.ss" | "comineq.ss"
@@ -436,8 +436,8 @@ fn bin_op_ss<'tcx>(
436436
Ok(())
437437
}
438438

439-
/// Performs `which` operation on each component of `left`, and
440-
/// `right` storing the result is stored in `dest`.
439+
/// Performs `which` operation on each component of `left` and
440+
/// `right`, storing the result is stored in `dest`.
441441
fn bin_op_ps<'tcx>(
442442
this: &mut crate::MiriInterpCx<'_, 'tcx>,
443443
which: FloatBinOp,

0 commit comments

Comments
 (0)