diff options
| author | Eduardo Sánchez Muñoz <eduardosm-dev@e64.io> | 2023-09-08 14:42:40 +0200 |
|---|---|---|
| committer | Eduardo Sánchez Muñoz <eduardosm-dev@e64.io> | 2023-09-12 19:29:07 +0200 |
| commit | 8a5f7f25af35e0b4f006f32dcf5cc1ba9d05826d (patch) | |
| tree | 91b2d13a00190a558d19f4f52dab370c6452b411 | |
| parent | 6e4fd87002c7ebf24a8c97dfad0f0df2701cfb4c (diff) | |
| download | rust-8a5f7f25af35e0b4f006f32dcf5cc1ba9d05826d.tar.gz rust-8a5f7f25af35e0b4f006f32dcf5cc1ba9d05826d.zip | |
Fix a few typos in shims/x86/sse.rs comments
| -rw-r--r-- | src/tools/miri/src/shims/x86/sse.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tools/miri/src/shims/x86/sse.rs b/src/tools/miri/src/shims/x86/sse.rs index b18441bb408..62295fa9f49 100644 --- a/src/tools/miri/src/shims/x86/sse.rs +++ b/src/tools/miri/src/shims/x86/sse.rs @@ -78,7 +78,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> { unary_op_ss(this, which, op, dest)?; } - // Used to implement _mm_{sqrt,rcp,rsqrt}_ss functions. + // Used to implement _mm_{sqrt,rcp,rsqrt}_ps functions. // Performs the operations on all components of `op`. "sqrt.ps" | "rcp.ps" | "rsqrt.ps" => { 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> { bin_op_ps(this, which, left, right, dest)?; } - // Used to implement _mm_{,u}comi{eq,lt,le,gt,ge,neq}_ps functions. + // Used to implement _mm_{,u}comi{eq,lt,le,gt,ge,neq}_ss functions. // Compares the first component of `left` and `right` and returns // a scalar value (0 or 1). "comieq.ss" | "comilt.ss" | "comile.ss" | "comigt.ss" | "comige.ss" | "comineq.ss" @@ -436,8 +436,8 @@ fn bin_op_ss<'tcx>( Ok(()) } -/// Performs `which` operation on each component of `left`, and -/// `right` storing the result is stored in `dest`. +/// Performs `which` operation on each component of `left` and +/// `right`, storing the result is stored in `dest`. fn bin_op_ps<'tcx>( this: &mut crate::MiriInterpCx<'_, 'tcx>, which: FloatBinOp, |
