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: PR testsuite/38420: gcc.target/i386/pr37248-2.c doesn't work on ia32


On Tue, Dec 09, 2008 at 08:54:42AM -0800, H.J. Lu wrote:
> dump_generic_node in tree-pretty-print.c dumps INTEGER_CST in hex
> or decimal formats, depending on HOST_WIDE_INT. As the result,
> gcc.target/i386/pr37248-2.c and gcc.target/i386/pr37248-3.c fail on
> ia32. Tested on Linux/ia32 and Linux/Intel64.  I am checking in this
> patch as an obvious fix.

> -/* { dg-final { scan-tree-dump "& 3758096391\[^\n\t\]*== 3758096391" "optimized" } } */
> +/* { dg-final { scan-tree-dump "& \[3758096391|0xe0000007\]\[^\n\t\]*== \[3758096391|0xe0000007\]" "optimized" } } */

I'd expect ()'s instead of []'s (sufficiently \ prefixed so that tcl doesn't
eat it), [] should mean a character range...

>  /* { dg-final { cleanup-tree-dump "optimized" } } */
> --- gcc.target/i386/pr37248-3.c.foo	2008-12-05 09:11:22.000000000 -0800
> +++ gcc.target/i386/pr37248-3.c	2008-12-09 08:47:35.000000000 -0800
> @@ -21,5 +21,5 @@ foo (struct S x)
>    return x.a && x.i && x.b && x.h && x.c && x.g && x.e == 131;
>  }
>  
> -/* { dg-final { scan-tree-dump "& 3766484487\[^\n\t\]*== 3758163463" "optimized" } } */
> +/* { dg-final { scan-tree-dump "& \[3766484487|0xe07ffe07\]\[^\n\t\]*== \[3758163463|0xe0010607\]" "optimized" } } */
>  /* { dg-final { cleanup-tree-dump "optimized" } } */

	Jakub


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