From: Segher Boessenkool Date: Mon, 1 Jul 2019 18:47:56 +0000 (+0200) Subject: rs6000.md (ieee_128bit_vsx_abs2): Make this a parameterized name. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6783210c18319e47404b330d05db57b858e4d19c;p=gcc.git rs6000.md (ieee_128bit_vsx_abs2): Make this a parameterized name. @ieee_128bit_vsx_abs2 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs2): Make this a parameterized name. (abs2): Use that name. Simplify. From-SVN: r272907 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 89174491d7a..4e80c34e8ae 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-07-01 Segher Boessenkool + + * config/rs6000/rs6000.md (ieee_128bit_vsx_abs2): Make this a + parameterized name. + (abs2): Use that name. Simplify. + 2019-07-01 Segher Boessenkool * config/rs6000/rs6000.md (ieee_128bit_vsx_neg2): Make this a diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 011edc3759d..9ab9ceb87f5 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -8122,12 +8122,8 @@ } else if (TARGET_FLOAT128_TYPE) { - if (mode == TFmode) - emit_insn (gen_ieee_128bit_vsx_abstf2 (operands[0], operands[1])); - else if (mode == KFmode) - emit_insn (gen_ieee_128bit_vsx_abskf2 (operands[0], operands[1])); - else - FAIL; + emit_insn (gen_ieee_128bit_vsx_abs2 (mode, + operands[0], operands[1])); DONE; } else @@ -8218,7 +8214,7 @@ [(set_attr "type" "veclogical")]) ;; IEEE 128-bit absolute value -(define_insn_and_split "ieee_128bit_vsx_abs2" +(define_insn_and_split "@ieee_128bit_vsx_abs2" [(set (match_operand:IEEE128 0 "register_operand" "=wa") (abs:IEEE128 (match_operand:IEEE128 1 "register_operand" "wa"))) (clobber (match_scratch:V16QI 2 "=v"))]