This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Fix PR testsuite/28950 revised
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.
Jakub