Skip to contentSkip to conversation

[5245] alpha: convert cmov and bcond to TCG

Qemu-devel Aurelien Jarno 1 participant 1 message Sep 17, 2008

lore
Share & tools
lore
#0 lore raw

Revision: 5245

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5245
Author:   aurel32
Date:     2008-09-17 22:04:44 +0000 (Wed, 17 Sep 2008)

Log Message:
-----------
alpha: convert cmov and bcond to TCG

Patch mostly by Tristan Gingold

Modified Paths:
--------------
trunk/target-alpha/op.c
trunk/target-alpha/op_template.h
trunk/target-alpha/translate.c

Modified: trunk/target-alpha/op.c
===================================================================

target-alpha/op.c +0 -66
@@ -434,72 +434,6 @@
     RETURN();
 }
 
-void OPPROTO op_cmpeqz (void)
-{
-    if (T0 == 0)
-        T0 = 1;
-    else
-        T0 = 0;
-    RETURN();
-}
-
-void OPPROTO op_cmpnez (void)
-{
-    if (T0 != 0)
-        T0 = 1;
-    else
-        T0 = 0;
-    RETURN();
-}
-
-void OPPROTO op_cmpltz (void)
-{
-    if ((int64_t)T0 < 0)
-        T0 = 1;
-    else
-        T0 = 0;
-    RETURN();
-}
-
-void OPPROTO op_cmplez (void)
-{
-    if ((int64_t)T0 <= 0)
-        T0 = 1;
-    else
-        T0 = 0;
-    RETURN();
-}
-
-void OPPROTO op_cmpgtz (void)
-{
-    if ((int64_t)T0 > 0)
-        T0 = 1;
-    else
-        T0 = 0;
-    RETURN();
-}
-
-void OPPROTO op_cmpgez (void)
-{
-    if ((int64_t)T0 >= 0)
-        T0 = 1;
-    else
-        T0 = 0;
-    RETURN();
-}
-
-void OPPROTO op_cmplbs (void)
-{
-    T0 &= 1;
-    RETURN();
-}
-
-void OPPROTO op_cmplbc (void)
-{
-    T0 = (~T0) & 1;
-    RETURN();
-}
-
 #if 0 // Qemu does not know how to do this...
 void OPPROTO op_bcond (void)
 {

Modified: trunk/target-alpha/op_template.h
===================================================================

target-alpha/op_template.h +0 -8
@@ -37,15 +37,7 @@
 
 #endif /* REG < 3 */
 
-/* Fixed-point register moves */
 #if REG < 31
-void OPPROTO glue(op_cmov_ir, REG) (void)
-{
-    if (T0)
-        env->ir[REG] = T1;
-    RETURN();
-}
-
 /* floating point registers moves */
 void OPPROTO glue(op_load_FT0_fir, REG) (void)
 {

Modified: trunk/target-alpha/translate.c
===================================================================

target-alpha/translate.c +69 -41

204 lines not on this page · raw message