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]

Re: x86_64 merger part 24 - string operations


Richard Henderson <rth@redhat.com> writes:
> There seems to be a real need for patterns to be able to use Pmode.

Would something like this be acceptable?

Index: rtl.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/rtl.c,v
retrieving revision 1.89
diff -c -3 -p -r1.89 rtl.c
*** rtl.c	2001/03/06 09:52:32	1.89
--- rtl.c	2001/04/03 11:16:31
*************** again:
*** 1072,1083 ****
    if (i == ':')
      {
        read_name (tmp_char, infile);
-       for (j = 0; j < NUM_MACHINE_MODES; j++)
- 	if (! strcmp (GET_MODE_NAME (j), tmp_char))
- 	  break;
  
!       if (j == MAX_MACHINE_MODE)
! 	fatal_with_file_and_line (infile, "unknown mode `%s'", tmp_char);
  
        PUT_MODE (return_rtx, (enum machine_mode) j);
      }
--- 1072,1089 ----
    if (i == ':')
      {
        read_name (tmp_char, infile);
  
!       if (! strcmp (tmp_char, "P"))
! 	j = (int) Pmode;
!       else
! 	{
! 	  for (j = 0; j < NUM_MACHINE_MODES; j++)
! 	    if (! strcmp (GET_MODE_NAME (j), tmp_char))
! 	      break;
! 
! 	  if (j == MAX_MACHINE_MODE)
! 	    fatal_with_file_and_line (infile, "unknown mode `%s'", tmp_char);
! 	}
  
        PUT_MODE (return_rtx, (enum machine_mode) j);
      }

(Incomplete patch.  Not tested yet, not documented yet.)

-- 
http://lars.nocrew.org/


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