miri: use copy_op in unary_op_ss

This commit is contained in:
Eduardo Sánchez Muñoz 2023-09-13 20:34:03 +02:00
parent 98310bed8e
commit ff685416db

View File

@ -343,10 +343,11 @@ fn unary_op_ss<'tcx>(
this.write_scalar(res0, &this.project_index(&dest, 0)?)?; this.write_scalar(res0, &this.project_index(&dest, 0)?)?;
for i in 1..dest_len { for i in 1..dest_len {
let op = this.read_immediate(&this.project_index(&op, i)?)?; this.copy_op(
let dest = this.project_index(&dest, i)?; &this.project_index(&op, i)?,
&this.project_index(&dest, i)?,
this.write_immediate(*op, &dest)?; /*allow_transmute*/ false,
)?;
} }
Ok(()) Ok(())