re PR target/64093 (ICE error: unrecognizable insn with -mcpu=cell)

PR target/64093
	* config/rs6000/rs6000.md (and<mode>3): Don't generate
	and<mode>3_imm unless rs6000_gen_cell_microcode is true.

From-SVN: r218164
This commit is contained in:
Segher Boessenkool 2014-11-28 17:25:33 +01:00 committed by Segher Boessenkool
parent 6a4da643ca
commit 8760be8546
2 changed files with 13 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2014-11-28 Segher Boessenkool <segher@kernel.crashing.org>
PR target/64093
* config/rs6000/rs6000.md (and<mode>3): Don't generate
and<mode>3_imm unless rs6000_gen_cell_microcode is true.
2014-11-28 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/64087

View file

@ -2646,8 +2646,13 @@
if (logical_const_operand (operands[2], <MODE>mode)
&& !any_mask_operand (operands[2], <MODE>mode))
{
emit_insn (gen_and<mode>3_imm (operands[0], operands[1], operands[2]));
DONE;
if (rs6000_gen_cell_microcode)
{
emit_insn (gen_and<mode>3_imm (operands[0], operands[1], operands[2]));
DONE;
}
else
operands[2] = force_reg (<MODE>mode, operands[2]);
}
if ((<MODE>mode == DImode && !and64_2_operand (operands[2], <MODE>mode))