Skip to content

Commit 5580e4d

Browse files
committed
Auto merge of rust-lang#3102 - eduardosm:typos, r=RalfJung
Fix typos `*ucom` → `ucom*`
2 parents 67f7fb1 + 6efc08f commit 5580e4d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,10 @@ pub(super) trait EvalContextExt<'mir, 'tcx: 'mir>:
141141

142142
let left = this.read_scalar(&this.project_index(&left, 0)?)?.to_f32()?;
143143
let right = this.read_scalar(&this.project_index(&right, 0)?)?.to_f32()?;
144-
// The difference between the com* and *ucom variants is signaling
144+
// The difference between the com* and ucom* variants is signaling
145145
// of exceptions when either argument is a quiet NaN. We do not
146146
// support accessing the SSE status register from miri (or from Rust,
147-
// for that matter), so we treat equally both variants.
147+
// for that matter), so we treat both variants equally.
148148
let res = match unprefixed_name {
149149
"comieq.ss" | "ucomieq.ss" => left == right,
150150
"comilt.ss" | "ucomilt.ss" => left < right,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -637,10 +637,10 @@ pub(super) trait EvalContextExt<'mir, 'tcx: 'mir>:
637637

638638
let left = this.read_scalar(&this.project_index(&left, 0)?)?.to_f64()?;
639639
let right = this.read_scalar(&this.project_index(&right, 0)?)?.to_f64()?;
640-
// The difference between the com* and *ucom variants is signaling
640+
// The difference between the com* and ucom* variants is signaling
641641
// of exceptions when either argument is a quiet NaN. We do not
642642
// support accessing the SSE status register from miri (or from Rust,
643-
// for that matter), so we treat equally both variants.
643+
// for that matter), so we treat both variants equally.
644644
let res = match unprefixed_name {
645645
"comieq.sd" | "ucomieq.sd" => left == right,
646646
"comilt.sd" | "ucomilt.sd" => left < right,

0 commit comments

Comments
 (0)