summaryrefslogtreecommitdiff
path: root/gcc/predict.h
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2013-12-16 18:46:49 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2013-12-16 18:46:49 +0000
commit1ee16627358321c71b5a3a3f2f70125099732c30 (patch)
tree30e2cba74403c48113ac6fb7b1f8dc931d074c7a /gcc/predict.h
parent509e8feaa3808381faba80e20468bc2baa95f3fe (diff)
downloadgcc-1ee16627358321c71b5a3a3f2f70125099732c30.tar.gz
* predict.h (PROB_LIKELY): Fix the value.
* internal-fn.c (ubsan_expand_si_overflow_mul_check): Add support for overflow checking for modes without 2xwider supported mode, if the mode has 2xnarrower mode. * c-c++-common/ubsan/overflow-mul-3.c: New test. * c-c++-common/ubsan/overflow-mul-4.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206026 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/predict.h')
-rw-r--r--gcc/predict.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/predict.h b/gcc/predict.h
index 23435dc2c99..125245e73f4 100644
--- a/gcc/predict.h
+++ b/gcc/predict.h
@@ -28,7 +28,7 @@ along with GCC; see the file COPYING3. If not see
#define PROB_VERY_LIKELY (REG_BR_PROB_BASE - PROB_VERY_UNLIKELY)
#define PROB_ALWAYS (REG_BR_PROB_BASE)
#define PROB_UNLIKELY (REG_BR_PROB_BASE / 5 - 1)
-#define PROB_LIKELY (PROB_ALWAYS - PROB_VERY_LIKELY)
+#define PROB_LIKELY (REG_BR_PROB_BASE - PROB_UNLIKELY)
#define DEF_PREDICTOR(ENUM, NAME, HITRATE, FLAGS) ENUM,
enum br_predictor