This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Patch Moxie] fixes for soft fp and memory loads


I'm checking in the following patch.  Thanks to Uros Bizjak for pointing
out the missing fragment in sfp-machine.h. The moxie.h patch clarifies
that all loads zero extend.

AG


2009-06-20  Anthony Green  <green@moxielogic.com>

	* config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
	* config/moxie/moxie.h (LOAD_EXTEND_OP): Define.


Index: gcc/config/moxie/sfp-machine.h
===================================================================
--- gcc/config/moxie/sfp-machine.h	(revision 148747)
+++ gcc/config/moxie/sfp-machine.h	(working copy)
@@ -3,6 +3,11 @@
 #define _FP_WS_TYPE		signed long
 #define _FP_I_TYPE		long
 
+/* The type of the result of a floating point comparison.  This must
+   match `__libgcc_cmp_return__' in GCC for the target.  */
+typedef int __gcc_CMPtype __attribute__ ((mode
(__libgcc_cmp_return__)));
+#define CMPtype __gcc_CMPtype
+
 #define _FP_MUL_MEAT_S(R,X,Y)				\
   _FP_MUL_MEAT_1_wide(_FP_WFRACBITS_S,R,X,Y,umul_ppmm)
 #define _FP_MUL_MEAT_D(R,X,Y)				\
Index: gcc/config/moxie/moxie.h
===================================================================
--- gcc/config/moxie/moxie.h	(revision 148747)
+++ gcc/config/moxie/moxie.h	(working copy)
@@ -518,6 +518,9 @@
 #define MOVE_MAX 4
 #define TRULY_NOOP_TRUNCATION(op,ip) 1
 
+/* All load operations zero extend.  */
+#define LOAD_EXTEND_OP(MEM) ZERO_EXTEND
+
 #define RETURN_POPS_ARGS(FUNDECL, FUNTYPE, STACK_SIZE) 0
 
 /* A C expression that is nonzero if X is a legitimate constant for



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]