This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: x86_64 merger part 24 - string operations
- To: Richard Henderson <rth at redhat dot com>
- Subject: Re: x86_64 merger part 24 - string operations
- From: Lars Brinkhoff <lars dot spam at nocrew dot org>
- Date: 03 Apr 2001 13:18:24 +0200
- Cc: Jan Hubicka <hubicka at atrey dot karlin dot mff dot cuni dot cz>, gcc-patches at gcc dot gnu dot org
- Organization: nocrew
- References: <200103250048.BAA23876@atrey.karlin.mff.cuni.cz><20010324205125.C7473@redhat.com>
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/