Commit 7cefdfd5 by Alan Modra Committed by Alan Modra

Powerpc bootstrap failure due to duplicate case value

	PR target/79098
	* config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
	use a switch.

From-SVN: r244489
parent 1bcd0192
2017-01-16 Alan Modra <amodra@gmail.com>
PR target/79098
* config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
use a switch.
2017-01-16 Georg-Johann Lay <avr@gjlay.de> 2017-01-16 Georg-Johann Lay <avr@gjlay.de>
* config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4. * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
......
...@@ -9085,8 +9085,8 @@ rs6000_const_not_ok_for_debug_p (rtx x) ...@@ -9085,8 +9085,8 @@ rs6000_const_not_ok_for_debug_p (rtx x)
static bool static bool
rs6000_legitimate_combined_insn (rtx_insn *insn) rs6000_legitimate_combined_insn (rtx_insn *insn)
{ {
switch (INSN_CODE (insn)) int icode = INSN_CODE (insn);
{
/* Reject creating doloop insns. Combine should not be allowed /* Reject creating doloop insns. Combine should not be allowed
to create these for a number of reasons: to create these for a number of reasons:
1) In a nested loop, if combine creates one of these in an 1) In a nested loop, if combine creates one of these in an
...@@ -9109,16 +9109,17 @@ rs6000_legitimate_combined_insn (rtx_insn *insn) ...@@ -9109,16 +9109,17 @@ rs6000_legitimate_combined_insn (rtx_insn *insn)
a gpr to fpr. See PR70098 and PR71763 which are not fixed a gpr to fpr. See PR70098 and PR71763 which are not fixed
for the difficult case. It's better to not create problems for the difficult case. It's better to not create problems
in the first place. */ in the first place. */
case CODE_FOR_ctrsi_internal1: if (icode != CODE_FOR_nothing
case CODE_FOR_ctrdi_internal1: && (icode == CODE_FOR_ctrsi_internal1
case CODE_FOR_ctrsi_internal2: || icode == CODE_FOR_ctrdi_internal1
case CODE_FOR_ctrdi_internal2: || icode == CODE_FOR_ctrsi_internal2
case CODE_FOR_ctrsi_internal3: || icode == CODE_FOR_ctrdi_internal2
case CODE_FOR_ctrdi_internal3: || icode == CODE_FOR_ctrsi_internal3
case CODE_FOR_ctrsi_internal4: || icode == CODE_FOR_ctrdi_internal3
case CODE_FOR_ctrdi_internal4: || icode == CODE_FOR_ctrsi_internal4
|| icode == CODE_FOR_ctrdi_internal4))
return false; return false;
}
return true; return true;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment