summaryrefslogtreecommitdiffstats
path: root/target-i386/ops_template.h
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-17 18:44:58 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-17 18:44:58 +0000
commit6191b05901ef1a85c64383e34406024daa4eda12 (patch)
treed0a4405b885c0999c3dcdfbe6af47a02452df8c9 /target-i386/ops_template.h
parent7c6ce4baedfcd0c39250f313926ef61dcb47d74c (diff)
downloadhqemu-6191b05901ef1a85c64383e34406024daa4eda12.zip
hqemu-6191b05901ef1a85c64383e34406024daa4eda12.tar.gz
BSR/BSF TCG conversion
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4477 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-i386/ops_template.h')
-rw-r--r--target-i386/ops_template.h45
1 files changed, 0 insertions, 45 deletions
diff --git a/target-i386/ops_template.h b/target-i386/ops_template.h
index 9a91c07..f91d19e 100644
--- a/target-i386/ops_template.h
+++ b/target-i386/ops_template.h
@@ -200,51 +200,6 @@ void OPPROTO glue(op_setle_T0_sub, SUFFIX)(void)
T0 = ((DATA_STYPE)src1 <= (DATA_STYPE)src2);
}
-/* bit operations */
-#if DATA_BITS >= 16
-
-void OPPROTO glue(glue(op_bsf, SUFFIX), _T0_cc)(void)
-{
- int count;
- target_long res;
-
- res = T0 & DATA_MASK;
- if (res != 0) {
- count = 0;
- while ((res & 1) == 0) {
- count++;
- res >>= 1;
- }
- T1 = count;
- CC_DST = 1; /* ZF = 0 */
- } else {
- CC_DST = 0; /* ZF = 1 */
- }
- FORCE_RET();
-}
-
-void OPPROTO glue(glue(op_bsr, SUFFIX), _T0_cc)(void)
-{
- int count;
- target_long res;
-
- res = T0 & DATA_MASK;
- if (res != 0) {
- count = DATA_BITS - 1;
- while ((res & SIGN_MASK) == 0) {
- count--;
- res <<= 1;
- }
- T1 = count;
- CC_DST = 1; /* ZF = 0 */
- } else {
- CC_DST = 0; /* ZF = 1 */
- }
- FORCE_RET();
-}
-
-#endif
-
/* string operations */
void OPPROTO glue(op_movl_T0_Dshift, SUFFIX)(void)
OpenPOWER on IntegriCloud