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
This commit is contained in:
Bin Cheng 2017-05-31 16:20:32 +00:00 committed by Bin Cheng
parent 7f1b5019a5
commit 0e510edb0d
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2017-05-31 Bin Cheng <bin.cheng@arm.com>
* gcc.dg/tree-ssa/ivopt_mult_4.c: Explicitly check comparison
on pointer should not be replaced.
2017-05-31 Mikhail Maltsev <maltsevm@gmail.com>
PR testsuite/80580

View File

@ -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"} } */