This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: PR testsuite/38420: gcc.target/i386/pr37248-2.c doesn't work on ia32
- From: Jakub Jelinek <jakub at redhat dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 9 Dec 2008 18:02:56 +0100
- Subject: Re: PATCH: PR testsuite/38420: gcc.target/i386/pr37248-2.c doesn't work on ia32
- References: <20081209165442.GA14366@lucon.org>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
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