PATCH: PR testsuite/38420: gcc.target/i386/pr37248-2.c doesn't work on ia32

H.J. Lu hongjiu.lu@intel.com
Tue Dec 9 16:56:00 GMT 2008


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.

Thanks.


H.J.
---
2008-12-09  H.J. Lu  <hongjiu.lu@intel.com>

	PR testsuite/38420
	* gcc.target/i386/pr37248-2.c: Support hex dump.
	* gcc.target/i386/pr37248-3.c: Likewise.

--- gcc.target/i386/pr37248-2.c.foo	2008-12-05 09:11:22.000000000 -0800
+++ gcc.target/i386/pr37248-2.c	2008-12-09 08:45:37.000000000 -0800
@@ -19,5 +19,5 @@ foo (struct S x)
   return x.a && x.g && x.b && x.f && x.c && x.e;
 }
 
-/* { dg-final { scan-tree-dump "& 3758096391\[^\n\t\]*== 3758096391" "optimized" } } */
+/* { dg-final { scan-tree-dump "& \[3758096391|0xe0000007\]\[^\n\t\]*== \[3758096391|0xe0000007\]" "optimized" } } */
 /* { 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" } } */



More information about the Gcc-patches mailing list