Skip to contentSkip to conversation

[5555] target-ppc: convert rotation instructions to TCG

Qemu-devel Aurelien Jarno 1 participant 1 message Oct 27, 2008

lore
Share & tools
lore
#0 lore raw

Revision: 5555

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5555
Author:   aurel32
Date:     2008-10-27 22:50:22 +0000 (Mon, 27 Oct 2008)

Log Message:
-----------
target-ppc: convert rotation instructions to TCG

Also fix rlwimi and rldimi for corner cases.

Modified Paths:
--------------
trunk/target-ppc/op.c
trunk/target-ppc/translate.c

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

target-ppc/op.c +0 -56
@@ -752,63 +752,7 @@
 }
 #endif
 
-/***                            Integer logical                            ***/
-/* or */
-void OPPROTO op_or (void)
-{
-    T0 |= T1;
-    RETURN();
-}
-
-/***                             Integer rotate                            ***/
-void OPPROTO op_rotl32_T0_T1 (void)
-{
-    T0 = rotl32(T0, T1 & 0x1F);
-    RETURN();
-}
-
-void OPPROTO op_rotli32_T0 (void)
-{
-    T0 = rotl32(T0, PARAM1);
-    RETURN();
-}
-
-#if defined(TARGET_PPC64)
-void OPPROTO op_rotl64_T0_T1 (void)
-{
-    T0 = rotl64(T0, T1 & 0x3F);
-    RETURN();
-}
-
-void OPPROTO op_rotli64_T0 (void)
-{
-    T0 = rotl64(T0, PARAM1);
-    RETURN();
-}
-#endif
-
 /***                             Integer shift                             ***/
-/* shift right word */
-void OPPROTO op_sli_T0 (void)
-{
-    T0 = T0 << PARAM1;
-    RETURN();
-}
-
-void OPPROTO op_srli_T0 (void)
-{
-    T0 = (uint32_t)T0 >> PARAM1;
-    RETURN();
-}
-
-#if defined(TARGET_PPC64)
-void OPPROTO op_srli_T0_64 (void)
-{
-    T0 = (uint64_t)T0 >> PARAM1;
-    RETURN();
-}
-#endif
-
 void OPPROTO op_srli_T1 (void)
 {
     T1 = (uint32_t)T1 >> PARAM1;

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

target-ppc/translate.c +137 -102

312 lines not on this page · raw message