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: SH: use register names instead of numbers


On Nov 22, 2000, Joern Rennecke <amylaar@redhat.com> wrote:

>> && GET_MODE (SET_DEST (pat)) != QImode
>> -	  && CONSTANT_P (SET_SRC (pat))
>> +	  && (CONSTANT_P (SET_SRC (pat))

> Add a comment here saying that is to recognize the mova_const pattern.

Ok, will do.

>> +	      || (GET_CODE (SET_SRC (pat)) == UNSPEC
>> +		  && XINT (SET_SRC (pat), 1) == 1
>> +		  && GET_CODE (XVECEXP (SET_SRC (pat), 0, 0)) == CONST))

> With that change, it's OK to install.

I'm finishing to convert it to the post-register-naming, that also
includes unspec-naming.  So I'll post it again afterwards.

> Eventually, I'd like to see the assorted literal constants used in UNSPEC
> to be replaced with symbolic constants

Got the patch, will post it momentarily.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

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