[kaffe] CVS kaffe (robilad): Small warning fix for ppc jit

Kaffe CVS cvs-commits at kaffe.org
Wed Aug 10 06:45:50 PDT 2005


PatchSet 6802 
Date: 2005/08/10 13:37:59
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
Small warning fix for ppc jit
2005-08-10  Dalibor Topic  <robilad at kaffe.org>

        * config/powerpc/jit3-icode.h:
        (HAVE_move_float_const, HAVE_move_double_const): Removed.

        * config/powerpc/jit3-powerpc.def (define_insn(move_float_const,
        fmove_RxC)): Removed empty function to fix unused variable warnings.
        (define_insn(move_double, fmovel_RxR)): Likewise.

        Based on a patch by:  Andreas Tobler  <toa at pop.agri.ch>

Members: 
	ChangeLog:1.4327->1.4328 
	config/powerpc/jit3-icode.h:1.3->1.4 
	config/powerpc/jit3-powerpc.def:1.8->1.9 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4327 kaffe/ChangeLog:1.4328
--- kaffe/ChangeLog:1.4327	Wed Aug 10 12:30:55 2005
+++ kaffe/ChangeLog	Wed Aug 10 13:37:59 2005
@@ -1,5 +1,16 @@
 2005-08-10  Dalibor Topic  <robilad at kaffe.org>
 
+	* config/powerpc/jit3-icode.h:
+	(HAVE_move_float_const, HAVE_move_double_const): Removed.
+
+	* config/powerpc/jit3-powerpc.def (define_insn(move_float_const,
+	fmove_RxC)): Removed empty function to fix unused variable warnings.
+	(define_insn(move_double, fmovel_RxR)): Likewise.
+
+	Based on a patch by:  Andreas Tobler  <toa at pop.agri.ch>
+
+2005-08-10  Dalibor Topic  <robilad at kaffe.org>
+
 	* kaffe/kaffevm/intrp/machine.c (virtualMachine):
 	Fixed build with JVMPI.
 
Index: kaffe/config/powerpc/jit3-icode.h
diff -u kaffe/config/powerpc/jit3-icode.h:1.3 kaffe/config/powerpc/jit3-icode.h:1.4
--- kaffe/config/powerpc/jit3-icode.h:1.3	Fri Jul  1 17:54:33 2005
+++ kaffe/config/powerpc/jit3-icode.h	Wed Aug 10 13:38:08 2005
@@ -293,8 +293,6 @@
 #if 0
 #define	HAVE_move_float_const_rangecheck(v)	__builtin_FP_values(v)
 #define	HAVE_move_double_const_rangecheck(v)	__builtin_FP_values(v)
-#define	HAVE_move_float_const		fmove_RxC
-#define	HAVE_move_double_const		fmovel_RxC
 #endif
 
 #define	HAVE_add_float			fadd_RRR
Index: kaffe/config/powerpc/jit3-powerpc.def
diff -u kaffe/config/powerpc/jit3-powerpc.def:1.8 kaffe/config/powerpc/jit3-powerpc.def:1.9
--- kaffe/config/powerpc/jit3-powerpc.def:1.8	Fri Jul  1 17:33:06 2005
+++ kaffe/config/powerpc/jit3-powerpc.def	Wed Aug 10 13:38:08 2005
@@ -610,40 +610,6 @@
 	debug((DBOUT,"move_float %d, %d\n", w, r));
 }
 
-define_insn(move_float_const, fmove_RxC)
-{
-	float o = const_float(2);
-	int w = wreg_float(0);
-	int r = 0;
-	
-#if 1
-#else
-	if ( o == 0.0 ) {
-	    r = 0x8 | 0;
-	} else if (o == 1.0) {
-	    r = 0x8 | 1;
-	} else if (o == 2.0) {
-	    r = 0x8 | 2;
-	} else if (o == 3.0) {
-	    r = 0x8 | 3;
-	} else if (o == 4.0) {
-	    r = 0x8 | 4;
-	} else if (o == 5.0) {
-	    r = 0x8 | 5;
-	} else if (o == 0.5) {
-	    r = 0x8 | 6;
-	} else if (o == 10.0) {
-	    r = 0x8 | 7;
-	} else {
-	    KAFFEVM_ABORT();
-	}
-
-	op_fmov(w, r);
-
-#endif
-	debug((DBOUT,"move_float_const %d, %f(0x%x)\n", w, o, r));
-}
-
 define_insn(move_double, fmovel_RxR)
 {
 	int r = rreg_double(2);
@@ -652,41 +618,6 @@
 	LOUT(ppc_op_fmr(w, r));
 
 	debug((DBOUT,"move_double %d, %d\n", w, r));
-}
-
-define_insn(move_double_const, fmovel_RxC)
-{
-	double o = const_double(2);
-	int w = wreg_double(0);
-
-	int r = 0;
-
-#if 1
-#else
-	if ( o == 0.0 ) {
-	    r = 0x8 | 0;
-	} else if (o == 1.0) {
-	    r = 0x8 | 1;
-	} else if (o == 2.0) {
-	    r = 0x8 | 2;
-	} else if (o == 3.0) {
-	    r = 0x8 | 3;
-	} else if (o == 4.0) {
-	    r = 0x8 | 4;
-	} else if (o == 5.0) {
-	    r = 0x8 | 5;
-	} else if (o == 0.5) {
-	    r = 0x8 | 6;
-	} else if (o == 10.0) {
-	    r = 0x8 | 7;
-	} else {
-	    KAFFEVM_ABORT();
-	}
-
-	op_fmovl(w, r);
-
-#endif
-	debug((DBOUT,"move_double_const %d, %f(0x%x)\n", w, o,r ));
 }
 
 




More information about the kaffe mailing list