Skip to content

Commit

Permalink
Update instructions_0f.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
spetterman66 committed Sep 12, 2023
1 parent 6422496 commit 231065d
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/rust/cpu/instructions_0f.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1866,11 +1866,9 @@ pub unsafe fn instr_660F7C(source: reg128, r: i32) {
// haddpd xmm1, xmm2/m128
let destination = read_xmm128s(r);
let result = reg128 {
f32: [
destination.f32[0] + destination.f32[1],
destination.f32[1] + destination.f32[2],
source.f32[0] + source.f32[1],
source.f32[1] + source.f32[2],
f64: [
destination.f64[0] + source.f64[1],
destination.f64[2] + source.f64[3],
],
};
write_xmm_reg128(r, result);
Expand All @@ -1885,8 +1883,8 @@ pub unsafe fn instr_660F7D(source: reg128, r: i32) {
let destination = read_xmm128s(r);
let result = reg128 {
f64: [
destination.f64[0] + source.f64[0],
destination.f64[1] + source.f64[1],
destination.f64[0] - source.f64[0],
destination.f64[1] - source.f64[1],
],
};
write_xmm_reg128(r, result);
Expand Down

0 comments on commit 231065d

Please sign in to comment.