int scale;
rtx_insn *next, *last, *seq;
REAL_VALUE_TYPE r;
+ bool success;
/* It matches RTL expressions of the following format:
(set (reg:SF gpr) (const_double:SF cst))
dump_insn_slim (dump_file, next);
}
remove_reg_equal_equiv_notes (insn);
- validate_change (insn, &PATTERN (insn),
- PATTERN (seq), 0);
+ success = validate_change (insn, &PATTERN (insn),
+ PATTERN (seq), 0);
+ gcc_assert (success);
remove_reg_equal_equiv_notes (next);
remove_note (next, note);
- validate_change (next, &PATTERN (next),
- PATTERN (last), 0);
+ success = validate_change (next, &PATTERN (next),
+ PATTERN (last), 0);
+ gcc_assert (success);
add_reg_note (next, REG_EQUIV, src);
add_reg_note (next, REG_DEAD, dest_2);
if (dump_file)
convert_SF_const (rtx_insn *insn)
{
rtx pat, dest, src, dest0, src0, src0c;
+ bool success;
/* It is more efficient to assign SFmode literal constants using their
bit-equivalent SImode ones, thus we convert them so. */
&& ! xtensa_simm12b (INTVAL (src0)))
src0c = src0, src0 = force_const_mem (SImode, src0);
remove_reg_equal_equiv_notes (insn);
- validate_change (insn, &PATTERN (insn), gen_rtx_SET (dest0, src0), 0);
+ success = validate_change (insn, &PATTERN (insn),
+ gen_rtx_SET (dest0, src0), 0);
+ gcc_assert (success);
if (src0c)
add_reg_note (insn, REG_EQUIV, copy_rtx (src0c));
if (dump_file)
{
rtx pat, dest, src;
int *pcount;
+ bool success;
/* Check whether the insn is an assignment to a constant that is eligible
for constantsynth. If a large constant, record the insn and also the
if (! rtx_equal_p (src, SET_SRC (pat)))
{
remove_reg_equal_equiv_notes (insn);
- validate_change (insn, &SET_SRC (pat), src, 0);
+ success = validate_change (insn, &SET_SRC (pat), src, 0);
+ gcc_assert (success);
}
if (dump_file)
{
{
rtx dest, src;
enum machine_mode mode;
+ bool success;
if (REG_P (dest = SET_DEST (set)) && CONST_INT_P (src = SET_SRC (set))
&& ((((mode = GET_MODE (dest)) == SImode || mode == HImode)
|| mode == DImode))
{
remove_reg_equal_equiv_notes (insn);
- validate_change (insn, &SET_SRC (set),
- force_const_mem (mode, src), in_group);
+ success = validate_change (insn, &SET_SRC (set),
+ force_const_mem (mode, src), in_group);
+ gcc_assert (success);
add_reg_note (insn, REG_EQUIV, copy_rtx (src));
return true;
}
{
rtx pat = PATTERN (insn);
int i;
- bool changed;
+ bool changed, success;
switch (GET_CODE (pat))
{
&& litpool_set_src_1 (insn, XVECEXP (pat, 0, i), 1))
changed = true;
if (changed)
- apply_change_group ();
+ {
+ success = apply_change_group ();
+ gcc_assert (success);
+ }
+
return changed;
default: