[gcc(refs/users/aldyh/heads/ranger-staging)] adjust test case for new EVRP
Andrew Macleod
amacleod@gcc.gnu.org
Fri Sep 18 23:02:30 GMT 2020
https://gcc.gnu.org/g:5880b5a9dfadd903995c3328a53b8a3295133434
commit 5880b5a9dfadd903995c3328a53b8a3295133434
Author: Andrew MacLeod <amacleod@redhat.com>
Date: Fri Sep 18 19:02:01 2020 -0400
adjust test case for new EVRP
Diff:
---
gcc/testsuite/gcc.dg/pr81192.c | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/gcc/testsuite/gcc.dg/pr81192.c b/gcc/testsuite/gcc.dg/pr81192.c
index 0049f371b3d..71bbc13a0e9 100644
--- a/gcc/testsuite/gcc.dg/pr81192.c
+++ b/gcc/testsuite/gcc.dg/pr81192.c
@@ -1,4 +1,20 @@
-/* { dg-options "-Os -fdump-tree-pre-details" } */
+/* { dg-options "-Os -fdump-tree-pre-details -fdisable-tree-evrp" } */
+
+/* Disable tree-evrp because the new version of evrp sees
+<bb 3> :
+ if (j_8(D) != 2147483647)
+ goto <bb 4>; [50.00%]
+ else
+ goto <bb 5>; [50.00%]
+<bb 4> :
+ iftmp.2_11 = j_8(D) + 1;
+<bb 5> :
+ # iftmp.2_12 = PHI <j_8(D)(3), iftmp.2_11(4)>
+
+EVRP now recognizes a constant can be propagated into the 3->5 edge and
+produces
+ # iftmp.2_12 = PHI <2147483647(3), iftmp.2_11(4)>
+which causes the situation being tested to dissapear before we get to PRE. */
#if __SIZEOF_INT__ == 2
#define unsigned __UINT32_TYPE__
More information about the Gcc-cvs
mailing list