Merge remote-tracking branch

'origin/GP-3079_ghidorahrex_x86_fbld_pcode_fix' into patch
(Closes #2427)
This commit is contained in:
Ryan Kurtz 2023-03-02 11:10:32 -05:00
commit 8c23cdc09f

View File

@ -4073,9 +4073,10 @@ define pcodeop f2xm1;
:FIADD spec_m32 is vexMode=0 & byte=0xDA; reg_opcode=0 ... & spec_m32 { ST0 = ST0 f+ int2float(spec_m32); }
:FIADD spec_m16 is vexMode=0 & byte=0xDE; reg_opcode=0 ... & spec_m16 { ST0 = ST0 f+ int2float(spec_m16); }
:FBLD spec_m80 is vexMode=0 & byte=0xDF; reg_opcode=4 ... & spec_m80 { spec_m80 = ST0; fpop(); }
define pcodeop convert_bcd;
:FBLD spec_m80 is vexMode=0 & byte=0xDF; reg_opcode=4 ... & spec_m80 { fdec(); ST0 = convert_bcd(spec_m80); }
:FBSTP spec_m80 is vexMode=0 & byte=0xDF; reg_opcode=6 ... & spec_m80 { spec_m80 = ST0; fpop(); }
:FBSTP spec_m80 is vexMode=0 & byte=0xDF; reg_opcode=6 ... & spec_m80 { spec_m80 = convert_bcd(ST0); fpop(); }
:FCHS is vexMode=0 & byte=0xD9; byte=0xE0 { ST0 = f- ST0; }