diff options
Diffstat (limited to 'gcc/reload1.c')
-rw-r--r-- | gcc/reload1.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/gcc/reload1.c b/gcc/reload1.c index d706e529b88..74dee444196 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -1261,7 +1261,7 @@ reload (rtx_insn *first, int global) if (asm_noperands (PATTERN (insn)) >= 0) { extract_insn (insn); - if (!constrain_operands (1)) + if (!constrain_operands (1, get_enabled_alternatives (insn))) { error_for_asm (insn, "%<asm%> operand has impossible constraints"); @@ -4713,7 +4713,9 @@ reload_as_needed (int live_known) if (p != insn && INSN_P (p) && GET_CODE (PATTERN (p)) != USE && (recog_memoized (p) < 0 - || (extract_insn (p), ! constrain_operands (1)))) + || (extract_insn (p), + !(constrain_operands (1, + get_enabled_alternatives (p)))))) { error_for_asm (insn, "%<asm%> operand requires " @@ -4796,7 +4798,8 @@ reload_as_needed (int live_known) if (n) { extract_insn (p); - n = constrain_operands (1); + n = constrain_operands (1, + get_enabled_alternatives (p)); } /* If the constraints were not met, then @@ -5723,7 +5726,7 @@ gen_reload_chain_without_interm_reg_p (int r1, int r2) /* We want constrain operands to treat this insn strictly in its validity determination, i.e., the way it would after reload has completed. */ - result = constrain_operands (1); + result = constrain_operands (1, get_enabled_alternatives (insn)); } delete_insns_since (last); @@ -7393,7 +7396,7 @@ emit_input_reload_insns (struct insn_chain *chain, struct reload *rl, autoincrement addressing mode, then the resulting insn is ill-formed and we must reject this optimization. */ extract_insn (temp); - if (constrain_operands (1) + if (constrain_operands (1, get_enabled_alternatives (temp)) #ifdef AUTO_INC_DEC && ! find_reg_note (temp, REG_INC, reloadreg) #endif @@ -8580,7 +8583,7 @@ emit_insn_if_valid_for_reload (rtx pat) /* We want constrain operands to treat this insn strictly in its validity determination, i.e., the way it would after reload has completed. */ - if (constrain_operands (1)) + if (constrain_operands (1, get_enabled_alternatives (insn))) return insn; } @@ -9217,7 +9220,7 @@ inc_for_reload (rtx reloadreg, rtx in, rtx value, int inc_amount) if (code >= 0) { extract_insn (add_insn); - if (constrain_operands (1)) + if (constrain_operands (1, get_enabled_alternatives (add_insn))) { /* If this is a pre-increment and we have incremented the value where it lives, copy the incremented value to RELOADREG to |