[4473] converted bit test operations to TCG
Revision: 4473
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4473 Author: bellard Date: 2008-05-17 16:10:38 +0000 (Sat, 17 May 2008)
Log Message:
-----------
converted bit test operations to TCG
Modified Paths:
--------------
trunk/target-i386/ops_template.h
trunk/target-i386/translate.c
Modified: trunk/target-i386/ops_template.h
===================================================================
target-i386/ops_template.h +0 -43
@@ -203,42 +203,6 @@/* bit operations */ #if DATA_BITS >=16 -void OPPROTO glue(glue(op_bt, SUFFIX), _T0_T1_cc)(void) -{ -int count; - count =T1 &SHIFT_MASK ; -CC_SRC =T0 >> count; -} - -void OPPROTO glue(glue(op_bts, SUFFIX), _T0_T1_cc)(void) -{ -int count; - count =T1 &SHIFT_MASK ; -T1 =T0 >> count; -T0 |= (((target_long )1 ) << count); -} - -void OPPROTO glue(glue(op_btr, SUFFIX), _T0_T1_cc)(void) -{ -int count; - count =T1 &SHIFT_MASK ; -T1 =T0 >> count; -T0 &= ~(((target_long )1 ) << count); -} - -void OPPROTO glue(glue(op_btc, SUFFIX), _T0_T1_cc)(void) -{ -int count; - count =T1 &SHIFT_MASK ; -T1 =T0 >> count; -T0 ^= (((target_long )1 ) << count); -} - -void OPPROTO glue(glue(op_add_bit, SUFFIX), _A0_T1)(void) -{ -A0 += ((DATA_STYPE )T1 >> (3 +SHIFT )) <<SHIFT ; -} - void OPPROTO glue(glue(op_bsf, SUFFIX), _T0_cc)(void) {int count;
@@ -281,13 +245,6 @@#endif -#if DATA_BITS ==32 -void OPPROTO op_update_bt_cc(void) -{ -CC_SRC =T1 ; -} -#endif -/* string operations */ void OPPROTO glue(op_movl_T0_Dshift, SUFFIX)(void)
Modified: trunk/target-i386/translate.c
===================================================================
target-i386/translate.c +53 -55
148 lines not on this page · raw message