From 0e510edb0ddea3cd33280b8aab50f00923cfdcb0 Mon Sep 17 00:00:00 2001 From: Bin Cheng Date: Wed, 31 May 2017 16:20:32 +0000 Subject: [PATCH] ivopt_mult_4.c: Explicitly check comparison on pointer should not be replaced. gcc/testsuite * gcc.dg/tree-ssa/ivopt_mult_4.c: Explicitly check comparison on pointer should not be replaced. From-SVN: r248746 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/tree-ssa/ivopt_mult_4.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d126dc1a361..c68b9a37d0d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-05-31 Bin Cheng + + * gcc.dg/tree-ssa/ivopt_mult_4.c: Explicitly check comparison + on pointer should not be replaced. + 2017-05-31 Mikhail Maltsev PR testsuite/80580 diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ivopt_mult_4.c b/gcc/testsuite/gcc.dg/tree-ssa/ivopt_mult_4.c index effb052f07c..e69e4163c5e 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ivopt_mult_4.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ivopt_mult_4.c @@ -1,6 +1,6 @@ /* { dg-do compile { target {{ i?86-*-* x86_64-*-* } && lp64 } } } */ -/* { dg-options "-O2 -m64 -fdump-tree-ivopts-details" } */ +/* { dg-options "-O2 -m64 -fdump-tree-optimized" } */ /* iv i's step 16 so its period is smaller than the max iterations * i.e. replacing if (p2 > p_limit2) with testing of i may result in @@ -21,4 +21,4 @@ long foo(long* p, long* p2, int N1, int N2) return s; } -/* { dg-final { scan-tree-dump "Replacing exit test" "ivopts"} } */ +/* { dg-final { scan-tree-dump "if \\(.*p_limit2.*\\)" "optimized"} } */ -- 2.30.2