Fix fxtract

This commit is contained in:
Fabian 2018-12-26 16:46:20 +01:00
parent 724090b319
commit 0269e9cecf
2 changed files with 13 additions and 1 deletions

View file

@ -769,7 +769,7 @@ pub unsafe fn fpu_fxtract() {
*fpu_stack_ptr as i32,
f.exponent as f64 - F64_EXPONENT_BIAS as f64,
);
f.exponent = 0x7FF;
f.exponent = 0x3FF;
fpu_push(f.to_f64());
}
#[no_mangle]

12
tests/nasm/fxtract.asm Normal file
View file

@ -0,0 +1,12 @@
global _start
section .data
align 16
%include "header.inc"
push 12345
fild dword [esp]
fxtract
%include "footer.inc"