aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/optabs.cc12
1 files changed, 8 insertions, 4 deletions
diff --git a/gcc/optabs.cc b/gcc/optabs.cc
index 262a37f..2ffd455 100644
--- a/gcc/optabs.cc
+++ b/gcc/optabs.cc
@@ -4491,10 +4491,14 @@ prepare_cmp_insn (rtx x, rtx y, enum rtx_code comparison, rtx size,
{
enum insn_code icode = optab_handler (cbranch_optab, CCmode);
test = gen_rtx_fmt_ee (comparison, VOIDmode, x, y);
- gcc_assert (icode != CODE_FOR_nothing
- && insn_operand_matches (icode, 0, test));
- *ptest = test;
- return;
+ if (icode != CODE_FOR_nothing
+ && insn_operand_matches (icode, 0, test))
+ {
+ *ptest = test;
+ return;
+ }
+ else
+ goto fail;
}
test = gen_rtx_fmt_ee (comparison, VOIDmode, x, y);