From: Andrew MacLeod Date: Mon, 25 Oct 2021 17:34:36 +0000 (-0400) Subject: Fix ifcvt-4.c to not depend on VRP2 asserts. X-Git-Tag: basepoints/gcc-13~3538 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d123daec0c237533cf974334d98bc6d357d4273e;p=thirdparty%2Fgcc.git Fix ifcvt-4.c to not depend on VRP2 asserts. The testcase fails if VRP2 is replaced with a non-assert based VRP because it accidentally depends on specific IL changes when the asserts are removed. This removes that dependency. gcc/testsuite/ * gcc.dg/ifcvt-4.c: Adjust. --- diff --git a/gcc/testsuite/gcc.dg/ifcvt-4.c b/gcc/testsuite/gcc.dg/ifcvt-4.c index ec142cfd9439..e74e449b4021 100644 --- a/gcc/testsuite/gcc.dg/ifcvt-4.c +++ b/gcc/testsuite/gcc.dg/ifcvt-4.c @@ -13,8 +13,7 @@ foo (word x, word y, word a) word i = x; word j = y; /* Try to make taking the branch likely. */ - __builtin_expect (x > y, 1); - if (x > y) + if (__builtin_expect (x > y, 0)) { i = a; j = i;