From: Segher Boessenkool Date: Mon, 1 Jul 2019 18:43:10 +0000 (+0200) Subject: rs6000.md (extenddf2): Make this a parameterized name. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c5634c4d530e09e374cd6b5a0f48249b72b3baa6;p=gcc.git rs6000.md (extenddf2): Make this a parameterized name. @extenddf2 * config/rs6000/rs6000.md (extenddf2): Make this a parameterized name. (floatsi2): Use that name. Simplify. From-SVN: r272903 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fd2ebf11281..80c8a2adf58 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -6,6 +6,12 @@ Use TARGET_SSE && SSE_REGNO_P in split condition. (*vec_dupv2sf): Ditto. +2019-07-01 Segher Boessenkool + + * config/rs6000/rs6000.md (extenddf2): Make this a parameterized + name. + (floatsi2): Use that name. Simplify. + 2019-07-01 Segher Boessenkool * config/rs6000/rs6000.md (extenddf2_fprs): Make this a diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 21ef8d7a3ad..61d03991642 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -7781,7 +7781,7 @@ (const_string "8") (const_string "16"))])]) -(define_expand "extenddf2" +(define_expand "@extenddf2" [(set (match_operand:FLOAT128 0 "gpc_reg_operand") (float_extend:FLOAT128 (match_operand:DF 1 "gpc_reg_operand")))] "TARGET_HARD_FLOAT && TARGET_LONG_DOUBLE_128" @@ -7928,12 +7928,7 @@ { rtx tmp = gen_reg_rtx (DFmode); expand_float (tmp, op1, false); - if (mode == TFmode) - emit_insn (gen_extenddftf2 (op0, tmp)); - else if (mode == IFmode) - emit_insn (gen_extenddfif2 (op0, tmp)); - else - gcc_unreachable (); + emit_insn (gen_extenddf2 (mode, op0, tmp)); DONE; } })