Search
lxdream.org :: lxdream/src/sh4/sh4x86.in :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4x86.in
changeset 789:7e7ec23217fc
prev733:633ee022f52e
next800:0d1be79c9b33
author nkeynes
date Wed Jul 30 00:10:48 2008 +0000 (12 years ago)
permissions -rw-r--r--
last change Fix 64-bit correctness in ptr loads in FTRC
file annotate diff log raw
1.1 --- a/src/sh4/sh4x86.in Fri Jul 11 04:02:25 2008 +0000
1.2 +++ b/src/sh4/sh4x86.in Wed Jul 30 00:10:48 2008 +0000
1.3 @@ -2017,17 +2017,17 @@
1.4 JMP_TARGET(doubleprec);
1.5 push_dr( FRm );
1.6 JMP_TARGET( doop );
1.7 - load_imm32( R_ECX, (uint32_t)&max_int );
1.8 + load_ptr( R_ECX, &max_int );
1.9 FILD_r32ind( R_ECX );
1.10 FCOMIP_st(1);
1.11 JNA_rel8( sat );
1.12 - load_imm32( R_ECX, (uint32_t)&min_int ); // 5
1.13 + load_ptr( R_ECX, &min_int ); // 5
1.14 FILD_r32ind( R_ECX ); // 2
1.15 FCOMIP_st(1); // 2
1.16 JAE_rel8( sat2 ); // 2
1.17 - load_imm32( R_EAX, (uint32_t)&save_fcw );
1.18 + load_ptr( R_EAX, &save_fcw );
1.19 FNSTCW_r32ind( R_EAX );
1.20 - load_imm32( R_EDX, (uint32_t)&trunc_fcw );
1.21 + load_ptr( R_EDX, &trunc_fcw );
1.22 FLDCW_r32ind( R_EDX );
1.23 FISTP_sh4r(R_FPUL); // 3
1.24 FLDCW_r32ind( R_EAX );
.