From 8af2ee968e6f576fc11b7c69ca7d6963d52a2b89 Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Wed, 27 Nov 2019 10:04:55 +0300 Subject: [PATCH] Fix incorrect usage of "unlikely" hint --- test/cfg/gnu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cfg/gnu.c b/test/cfg/gnu.c index 085ab1c76..cebdd6f01 100644 --- a/test/cfg/gnu.c +++ b/test/cfg/gnu.c @@ -115,7 +115,7 @@ void valid_code(int argInt1, va_list valist_arg, int * parg) if (__builtin_expect(argInt1, 0)) {} if (__builtin_expect_with_probability(argInt1 + 1, 2, 0.5)) {} - if (__glibc_unlikely(argInt1)) {} + if (__glibc_unlikely(argInt1 != 0)) {} if (__glibc_likely(parg != NULL)) {} void *ax1 = __builtin_assume_aligned(parg, 16); printf("%p", ax1);