summaryrefslogtreecommitdiff
path: root/target-mips/op.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-21 02:04:15 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-21 02:04:15 +0000
commit30898801ad8c70708ead392b243ca8bcd28ca722 (patch)
tree2a3c60c0c05b12bb3470ebd8c3832761b0b30069 /target-mips/op.c
parent20c4c97c9b9bcc413371e1b78e7db5306eb7fdd6 (diff)
downloadqemu-30898801ad8c70708ead392b243ca8bcd28ca722.tar.gz
Switch MIPS clo/clz and the condition tests to TCG.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4507 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-mips/op.c')
-rw-r--r--target-mips/op.c68
1 files changed, 0 insertions, 68 deletions
diff --git a/target-mips/op.c b/target-mips/op.c
index 80ea364bd1..69d3191d1c 100644
--- a/target-mips/op.c
+++ b/target-mips/op.c
@@ -167,51 +167,6 @@
#undef MEMSUFFIX
#endif
-/* Logical */
-void op_clo (void)
-{
- T0 = clo32(T0);
- FORCE_RET();
-}
-
-void op_clz (void)
-{
- T0 = clz32(T0);
- FORCE_RET();
-}
-
-#if defined(TARGET_MIPS64)
-
-#if TARGET_LONG_BITS > HOST_LONG_BITS
-/* Those might call libgcc functions. */
-void op_dclo (void)
-{
- CALL_FROM_TB0(do_dclo);
- FORCE_RET();
-}
-
-void op_dclz (void)
-{
- CALL_FROM_TB0(do_dclz);
- FORCE_RET();
-}
-
-#else /* TARGET_LONG_BITS > HOST_LONG_BITS */
-
-void op_dclo (void)
-{
- T0 = clo64(T0);
- FORCE_RET();
-}
-
-void op_dclz (void)
-{
- T0 = clz64(T0);
- FORCE_RET();
-}
-#endif /* TARGET_LONG_BITS > HOST_LONG_BITS */
-#endif /* TARGET_MIPS64 */
-
/* 64 bits arithmetic */
#if TARGET_LONG_BITS > HOST_LONG_BITS
void op_mult (void)
@@ -524,29 +479,6 @@ void op_movt (void)
FORCE_RET();
}
-/* Tests */
-#define OP_COND(name, cond) \
-void glue(op_, name) (void) \
-{ \
- if (cond) { \
- T0 = 1; \
- } else { \
- T0 = 0; \
- } \
- FORCE_RET(); \
-}
-
-OP_COND(eq, T0 == T1);
-OP_COND(ne, T0 != T1);
-OP_COND(ge, (target_long)T0 >= (target_long)T1);
-OP_COND(geu, T0 >= T1);
-OP_COND(lt, (target_long)T0 < (target_long)T1);
-OP_COND(ltu, T0 < T1);
-OP_COND(gez, (target_long)T0 >= 0);
-OP_COND(gtz, (target_long)T0 > 0);
-OP_COND(lez, (target_long)T0 <= 0);
-OP_COND(ltz, (target_long)T0 < 0);
-
/* Branches */
/* Branch to register */
void op_save_breg_target (void)