From: Segher Boessenkool Date: Mon, 1 Jul 2019 18:44:18 +0000 (+0200) Subject: rs6000.md (neg2_hw): Make this a parameterized name. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=47434aeb5634a89e510e575f2276977166703d56;p=gcc.git rs6000.md (neg2_hw): Make this a parameterized name. @neg2_hw * config/rs6000/rs6000.md (neg2_hw): Make this a parameterized name. (neg2): Use that name. Simplify. From-SVN: r272904 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 80c8a2adf58..ac7b8da98f6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-07-01 Segher Boessenkool + + * config/rs6000/rs6000.md (neg2_hw): Make this a parameterized + name. + (neg2): Use that name. Simplify. + 2019-07-01 Uroš Bizjak * config/i386/i386.md ("isa" attribute): Add sse_noavx. diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 61d03991642..f3a6e554b35 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -8074,14 +8074,7 @@ if (FLOAT128_IEEE_P (mode)) { if (TARGET_FLOAT128_HW) - { - if (mode == TFmode) - emit_insn (gen_negtf2_hw (operands[0], operands[1])); - else if (mode == KFmode) - emit_insn (gen_negkf2_hw (operands[0], operands[1])); - else - gcc_unreachable (); - } + emit_insn (gen_neg2_hw (mode, operands[0], operands[1])); else if (TARGET_FLOAT128_TYPE) { if (mode == TFmode) @@ -13911,7 +13904,7 @@ [(set_attr "type" "veccomplex") (set_attr "length" "8")]) -(define_insn "neg2_hw" +(define_insn "@neg2_hw" [(set (match_operand:IEEE128 0 "altivec_register_operand" "=v") (neg:IEEE128 (match_operand:IEEE128 1 "altivec_register_operand" "v")))]