Fix PR48753

Submitted by Richard Guenther on April 26, 2011, 10:02 a.m.

Details

Message ID alpine.LNX.2.00.1104261201380.810@zhemvz.fhfr.qr
State New
Headers show

Commit Message

Richard Guenther April 26, 2011, 10:02 a.m.
Value-profiling now creates proper integer constants.

Installed.

Richard.

2011-04-26  Richard Guenther  <rguenther@suse.de>

	PR testsuite/48753
	* gcc.dg/tree-prof/val-prof-2.c: Adjust.

Comments

H.J. Lu April 26, 2011, 1:18 p.m.
On Tue, Apr 26, 2011 at 3:02 AM, Richard Guenther <rguenther@suse.de> wrote:
>
> Value-profiling now creates proper integer constants.
>
> Installed.
>
> Richard.
>
> 2011-04-26  Richard Guenther  <rguenther@suse.de>
>
>        PR testsuite/48753
>        * gcc.dg/tree-prof/val-prof-2.c: Adjust.
>
> Index: gcc/testsuite/gcc.dg/tree-prof/val-prof-2.c
> ===================================================================
> --- gcc/testsuite/gcc.dg/tree-prof/val-prof-2.c (revision 172953)
> +++ gcc/testsuite/gcc.dg/tree-prof/val-prof-2.c (working copy)
> @@ -26,7 +26,7 @@ main ()
>  /* { dg-final-use { scan-ipa-dump "Mod power of 2 transformation on insn" "tree_profile_ipa" } } */
>  /* This is part of code checking that n is power of 2, so we are sure that the transformation
>    didn't get optimized out.  */
> -/* { dg-final-use { scan-tree-dump "n_\[0-9\]* \\+ 0xffff" "optimized"} } */
> +/* { dg-final-use { scan-tree-dump "n_\[0-9\]* \\+ 4294967295" "optimized"} } */
>  /* { dg-final-use { scan-tree-dump-not "Invalid sum" "optimized"} } */
>  /* { dg-final-use { cleanup-tree-dump "optimized" } } */
>  /* { dg-final-use { cleanup-ipa-dump "tree_profile_ipa" } } */
>

This fails for 32bit.

Patch hide | download patch | download mbox

Index: gcc/testsuite/gcc.dg/tree-prof/val-prof-2.c
===================================================================
--- gcc/testsuite/gcc.dg/tree-prof/val-prof-2.c	(revision 172953)
+++ gcc/testsuite/gcc.dg/tree-prof/val-prof-2.c	(working copy)
@@ -26,7 +26,7 @@  main ()
 /* { dg-final-use { scan-ipa-dump "Mod power of 2 transformation on insn" "tree_profile_ipa" } } */
 /* This is part of code checking that n is power of 2, so we are sure that the transformation
    didn't get optimized out.  */
-/* { dg-final-use { scan-tree-dump "n_\[0-9\]* \\+ 0xffff" "optimized"} } */
+/* { dg-final-use { scan-tree-dump "n_\[0-9\]* \\+ 4294967295" "optimized"} } */
 /* { dg-final-use { scan-tree-dump-not "Invalid sum" "optimized"} } */
 /* { dg-final-use { cleanup-tree-dump "optimized" } } */
 /* { dg-final-use { cleanup-ipa-dump "tree_profile_ipa" } } */