Search
lxdream.org :: lxdream/src/sh4/sh4x86.in :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4x86.in
changeset 397:640324505325
prev395:c473acbde186
next401:f79327f39818
author nkeynes
date Wed Sep 19 11:30:30 2007 +0000 (12 years ago)
permissions -rw-r--r--
last change Fix SHLL/SHLR/SHAL/SHAR flag setting
file annotate diff log raw
1.1 --- a/src/sh4/sh4x86.in Wed Sep 19 10:04:16 2007 +0000
1.2 +++ b/src/sh4/sh4x86.in Wed Sep 19 11:30:30 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: sh4x86.in,v 1.13 2007-09-19 10:04:16 nkeynes Exp $
1.6 + * $Id: sh4x86.in,v 1.14 2007-09-19 11:30:30 nkeynes Exp $
1.7 *
1.8 * SH4 => x86 translation. This version does no real optimization, it just
1.9 * outputs straight-line x86 code - it mainly exists to provide a baseline
1.10 @@ -907,16 +907,19 @@
1.11 SHAL Rn {:
1.12 load_reg( R_EAX, Rn );
1.13 SHL1_r32( R_EAX );
1.14 + SETC_t();
1.15 store_reg( R_EAX, Rn );
1.16 :}
1.17 SHAR Rn {:
1.18 load_reg( R_EAX, Rn );
1.19 SAR1_r32( R_EAX );
1.20 + SETC_t();
1.21 store_reg( R_EAX, Rn );
1.22 :}
1.23 SHLL Rn {:
1.24 load_reg( R_EAX, Rn );
1.25 SHL1_r32( R_EAX );
1.26 + SETC_t();
1.27 store_reg( R_EAX, Rn );
1.28 :}
1.29 SHLL2 Rn {:
1.30 @@ -937,6 +940,7 @@
1.31 SHLR Rn {:
1.32 load_reg( R_EAX, Rn );
1.33 SHR1_r32( R_EAX );
1.34 + SETC_t();
1.35 store_reg( R_EAX, Rn );
1.36 :}
1.37 SHLR2 Rn {:
.