From: Feng Xue Date: Wed, 16 Sep 2020 08:21:14 +0000 (+0800) Subject: testsuite/97066 - minor change to bypass plusminus-with-convert rule X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f419a0158950034ed9996ae860b0c8df03731119;p=gcc.git testsuite/97066 - minor change to bypass plusminus-with-convert rule The following testcases will be simplified by the new rule (T)(A) +- (T)(B) -> (T)(A +- B), so could not keep code pattern expected by test-check. Adjust test code to suppress simplification. 2020-09-16 Feng Xue gcc/testsuite/ PR testsuite/97066 * gcc.dg/ifcvt-3.c: Modified to suppress simplification. * gcc.dg/tree-ssa/20030807-10.c: Likewise. --- diff --git a/gcc/testsuite/gcc.dg/ifcvt-3.c b/gcc/testsuite/gcc.dg/ifcvt-3.c index b250bc15e08..56fdd753a0a 100644 --- a/gcc/testsuite/gcc.dg/ifcvt-3.c +++ b/gcc/testsuite/gcc.dg/ifcvt-3.c @@ -11,7 +11,7 @@ foo (s64 a, s64 b, s64 c) if (d == 0) return a + c; else - return b + d + c; + return b + c + d; } /* This test can be reduced to just return a + c; */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030807-10.c b/gcc/testsuite/gcc.dg/tree-ssa/20030807-10.c index 0903f3c4321..0e01e511b78 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030807-10.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030807-10.c @@ -7,7 +7,7 @@ unsigned int subreg_highpart_offset (outermode, innermode) int outermode, innermode; { - unsigned int offset = 0; + unsigned int offset = 1; int difference = (mode_size[innermode] - mode_size[outermode]); if (difference > 0) {