Skip to content

Commit 840ca09

Browse files
author
The Miri Conjob Bot
committed
fmt
1 parent f1abde7 commit 840ca09

File tree

4 files changed

+7
-28
lines changed

4 files changed

+7
-28
lines changed

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

+3-12
Original file line numberDiff line numberDiff line change
@@ -296,10 +296,7 @@ fn bin_op_simd_float_first<'tcx, F: rustc_apfloat::Float>(
296296
this.write_scalar(res0, &this.project_index(&dest, 0)?)?;
297297

298298
for i in 1..dest_len {
299-
this.copy_op(
300-
&this.project_index(&left, i)?,
301-
&this.project_index(&dest, i)?,
302-
)?;
299+
this.copy_op(&this.project_index(&left, i)?, &this.project_index(&dest, i)?)?;
303300
}
304301

305302
Ok(())
@@ -420,10 +417,7 @@ fn unary_op_ss<'tcx>(
420417
this.write_scalar(res0, &this.project_index(&dest, 0)?)?;
421418

422419
for i in 1..dest_len {
423-
this.copy_op(
424-
&this.project_index(&op, i)?,
425-
&this.project_index(&dest, i)?,
426-
)?;
420+
this.copy_op(&this.project_index(&op, i)?, &this.project_index(&dest, i)?)?;
427421
}
428422

429423
Ok(())
@@ -479,10 +473,7 @@ fn round_first<'tcx, F: rustc_apfloat::Float>(
479473
)?;
480474

481475
for i in 1..dest_len {
482-
this.copy_op(
483-
&this.project_index(&left, i)?,
484-
&this.project_index(&dest, i)?,
485-
)?;
476+
this.copy_op(&this.project_index(&left, i)?, &this.project_index(&dest, i)?)?;
486477
}
487478

488479
Ok(())

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

+1-4
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,7 @@ pub(super) trait EvalContextExt<'mir, 'tcx: 'mir>:
208208
this.write_immediate(*res0, &dest0)?;
209209

210210
for i in 1..dest_len {
211-
this.copy_op(
212-
&this.project_index(&left, i)?,
213-
&this.project_index(&dest, i)?,
214-
)?;
211+
this.copy_op(&this.project_index(&left, i)?, &this.project_index(&dest, i)?)?;
215212
}
216213
}
217214
_ => return Ok(EmulateForeignItemResult::NotSupported),

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

+2-8
Original file line numberDiff line numberDiff line change
@@ -440,10 +440,7 @@ pub(super) trait EvalContextExt<'mir, 'tcx: 'mir>:
440440
this.write_scalar(res0, &this.project_index(&dest, 0)?)?;
441441

442442
for i in 1..dest_len {
443-
this.copy_op(
444-
&this.project_index(&op, i)?,
445-
&this.project_index(&dest, i)?,
446-
)?;
443+
this.copy_op(&this.project_index(&op, i)?, &this.project_index(&dest, i)?)?;
447444
}
448445
}
449446
// Used to implement _mm_sqrt_pd functions.
@@ -580,10 +577,7 @@ pub(super) trait EvalContextExt<'mir, 'tcx: 'mir>:
580577

581578
// Copy remianing from `left`
582579
for i in 1..dest_len {
583-
this.copy_op(
584-
&this.project_index(&left, i)?,
585-
&this.project_index(&dest, i)?,
586-
)?;
580+
this.copy_op(&this.project_index(&left, i)?, &this.project_index(&dest, i)?)?;
587581
}
588582
}
589583
// Used to implement the `_mm_pause` function.

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

+1-4
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,7 @@ pub(super) trait EvalContextExt<'mir, 'tcx: 'mir>:
5757
this.write_immediate(*src_value, &dest)?;
5858
} else {
5959
// copy from `left`
60-
this.copy_op(
61-
&this.project_index(&left, i)?,
62-
&dest,
63-
)?;
60+
this.copy_op(&this.project_index(&left, i)?, &dest)?;
6461
}
6562
}
6663
}

0 commit comments

Comments
 (0)