diff options
author | Andrew MacLeod <amacleod@redhat.com> | 2021-10-25 13:34:36 -0400 |
---|---|---|
committer | Andrew MacLeod <amacleod@redhat.com> | 2021-10-28 10:48:39 -0400 |
commit | d123daec0c237533cf974334d98bc6d357d4273e (patch) | |
tree | 28d62aac633a3a7ddceb97c5a84580ed167fddce /gcc | |
parent | a6bbf1cc9f2847115543d720a99152d7dc2c4892 (diff) | |
download | gcc-d123daec0c237533cf974334d98bc6d357d4273e.zip gcc-d123daec0c237533cf974334d98bc6d357d4273e.tar.gz gcc-d123daec0c237533cf974334d98bc6d357d4273e.tar.bz2 |
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/gcc.dg/ifcvt-4.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/ifcvt-4.c b/gcc/testsuite/gcc.dg/ifcvt-4.c index ec142cf..e74e449 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; |