miri: use copy_op
in unary_op_ss
This commit is contained in:
parent
98310bed8e
commit
ff685416db
@ -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(())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user