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]

Re: [patch] Fix PR testsuite/28950 revised


On Mon, Sep 11, 2006 at 05:41:49PM -0400, Jakub Jelinek wrote:
> On Mon, Sep 11, 2006 at 02:30:05PM -0700, Janis Johnson wrote:
> > > What's wrong with `r?'?
> > 
> > That works for powerpc64-linux and certainly should work for darwin.
> > The change would be:
> > 
> > -/* { dg-final { scan-assembler "rlwinm \[0-9\]+,\[0-9\]+,0,0,30"  } } */
> > -/* { dg-final { scan-assembler "rlwinm \[0-9\]+,\[0-9\]+,0,29,30"  } } */
> > +/* { dg-final { scan-assembler "rlwinm r?\[0-9\]+,{,r}\[0-9\]+,0,0,30"  } } */
> > +/* { dg-final { scan-assembler "rlwinm r?\[0-9\]+,{,r}\[0-9\]+,0,29,30"  } } */
> 
> Well, the second {,r} can be replaced with r? too I guess.

Of course; I shouldn't have cut and pasted for the message.

+/* { dg-final { scan-assembler "rlwinm r?\[0-9\]+,r?\[0-9\]+,0,0,30"  } } */
+/* { dg-final { scan-assembler "rlwinm r?\[0-9\]+,r?\[0-9\]+,0,29,30"  } } */

(Warning, this was edited from my mailing and might have additional
stupid mistakes.)

Janis


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