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, committed] PowerPC MAX_FIXED_MODE_SIZE


	While investigating MOVE_BY_PIECES / STORE_BY_PIECES, I noticed
that the rs6000 port did not define MAX_FIXED_MODE_SIZE, and the default
is incorrect for 64-bit mode.  Fixed with the following patch.

David

	* config/rs6000/rs6000.h (MAX_FIXED_MODE_SIZE): Define.

Index: rs6000.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/rs6000.h,v
retrieving revision 1.329
diff -c -p -r1.329 rs6000.h
*** rs6000.h	16 Jul 2004 23:25:47 -0000	1.329
--- rs6000.h	11 Aug 2004 18:59:30 -0000
*************** do {								\
*** 2103,2108 ****
--- 2103,2114 ----
  
  /* #define FIXUNS_TRUNC_LIKE_FIX_TRUNC */
  
+ /* An integer expression for the size in bits of the largest integer machine
+    mode that should actually be used.  */
+ 
+ /* Allow pairs of registers to be used, which is the intent of the default.  */
+ #define MAX_FIXED_MODE_SIZE GET_MODE_BITSIZE (TARGET_POWERPC64 ? TImode : DImode)
+ 
  /* Max number of bytes we can move from memory to memory
     in one reasonably fast instruction.  */
  #define MOVE_MAX (! TARGET_POWERPC64 ? 4 : 8)


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