From: Segher Boessenkool Date: Fri, 28 Nov 2014 16:25:33 +0000 (+0100) Subject: re PR target/64093 (ICE error: unrecognizable insn with -mcpu=cell) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8760be8546edd0941c1d62dd47e5130fae5df953;p=gcc.git re PR target/64093 (ICE error: unrecognizable insn with -mcpu=cell) PR target/64093 * config/rs6000/rs6000.md (and3): Don't generate and3_imm unless rs6000_gen_cell_microcode is true. From-SVN: r218164 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 24112ee201c..b8f8dbe8bbe 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-11-28 Segher Boessenkool + + PR target/64093 + * config/rs6000/rs6000.md (and3): Don't generate + and3_imm unless rs6000_gen_cell_microcode is true. + 2014-11-28 Vladimir Makarov PR rtl-optimization/64087 diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index c8c3a680d82..f3b5aae18e6 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -2646,8 +2646,13 @@ if (logical_const_operand (operands[2], mode) && !any_mask_operand (operands[2], mode)) { - emit_insn (gen_and3_imm (operands[0], operands[1], operands[2])); - DONE; + if (rs6000_gen_cell_microcode) + { + emit_insn (gen_and3_imm (operands[0], operands[1], operands[2])); + DONE; + } + else + operands[2] = force_reg (mode, operands[2]); } if ((mode == DImode && !and64_2_operand (operands[2], mode))