[PATCH] PR 47580: Fix corner case on powerpc using --with-cpu=power7

Michael Meissner meissner@linux.vnet.ibm.com
Tue Feb 1 19:15:00 GMT 2011


On Tue, Feb 01, 2011 at 08:11:49PM +0100, Jakub Jelinek wrote:
> On Tue, Feb 01, 2011 at 02:08:44PM -0500, Michael Meissner wrote:
> > 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
> > 
> > 	PR target/47580
> > 	* config/rs6000/predicates.md (altivec_register_operand): Allow
> > 	virtaul registers.
> 
> virtual?
> 
> > --- gcc/config/rs6000/predicates.md	(revision 169484)
> > +++ gcc/config/rs6000/predicates.md	(working copy)
> > @@ -37,14 +37,14 @@ (define_predicate "altivec_register_oper
> >     (and (match_operand 0 "register_operand")
> >  	(match_test "GET_CODE (op) != REG
> >  		     || ALTIVEC_REGNO_P (REGNO (op))
> > -		     || REGNO (op) > LAST_VIRTUAL_REGISTER")))
> > +		     || REGNO (op) > FIRST_VIRTUAL_REGISTER")))
> 
> REGNO (op) > FIRST_VIRTUAL_REGISTER is strange, if you want to allow
> virtual registers, wouldn't you write REGNO (op) >= FIRST_VIRTUAL_REGISTER ?

You are correct, it was a typo.  Thanks for catching this.

-- 
Michael Meissner, IBM
5 Technology Place Drive, M/S 2757, Westford, MA 01886-3141, USA
meissner@linux.vnet.ibm.com	fax +1 (978) 399-6899



More information about the Gcc-patches mailing list