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 5, 2023
1 parent 15f64d3 commit 1092413
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions src/rust/cpu/instructions_0f.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1916,42 +1916,6 @@ pub unsafe fn instr_F20F7C_mem(addr: i32, r: i32) {
instr_F20F7C(return_on_pagefault!(safe_read128s(addr)), r);
}
#[no_mangle]
pub unsafe fn instr_DF(source: reg128, r: i32) {
// fisttp xmm, xmm/mem128
let destination = read_xmm128s(r);
let result = reg128 {
f32: [
destination.f32[0] + destination.f32[1],
destination.f32[2] + destination.f32[3],
source.f32[0] + source.f32[1],
source.f32[2] + source.f32[3],
],
};
write_xmm_reg128(r, result);
}
pub unsafe fn instr_DF_reg(r1: i32, r2: i32) { instr_DF(read_xmm128s(r1), r2); }
pub unsafe fn instr_DF_mem(addr: i32, r: i32) {
instr_DF(return_on_pagefault!(safe_read128s(addr)), r);
}
#[no_mangle]
pub unsafe fn instr_DD(source: reg128, r: i32) {
// fisttp xmm, xmm/mem128
let destination = read_xmm128s(r);
let result = reg128 {
f32: [
destination.f32[0] + destination.f32[1],
destination.f32[2] + destination.f32[3],
source.f32[0] + source.f32[1],
source.f32[2] + source.f32[3],
],
};
write_xmm_reg128(r, result);
}
pub unsafe fn instr_DD_reg(r1: i32, r2: i32) { instr_DD(read_xmm128s(r1), r2); }
pub unsafe fn instr_DD_mem(addr: i32, r: i32) {
instr_DD(return_on_pagefault!(safe_read128s(addr)), r);
}
#[no_mangle]
pub unsafe fn instr_F20F7D(source: reg128, r: i32) {
// hsubps xmm, xmm/mem128
let destination = read_xmm128s(r);
Expand Down

0 comments on commit 1092413

Please sign in to comment.