From 306f66aaaaee3fa5240611ab0cbe22c1240f1f27 Mon Sep 17 00:00:00 2001 From: Segher Boessenkool Date: Mon, 1 Jul 2019 20:47:05 +0200 Subject: [PATCH] rs6000.md (ieee_128bit_vsx_neg2): Make this a parameterized name. @ieee_128bit_vsx_neg2 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg2): Make this a parameterized name. (neg2): Use that name. Simplify. From-SVN: r272906 --- gcc/ChangeLog | 6 ++++++ gcc/config/rs6000/rs6000.md | 12 +++--------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b36c001d37c..89174491d7a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-07-01 Segher Boessenkool + + * config/rs6000/rs6000.md (ieee_128bit_vsx_neg2): Make this a + parameterized name. + (neg2): Use that name. Simplify. + 2019-07-01 Segher Boessenkool * config/rs6000/rs6000.md (abs2_hw): Make this a parameterized diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 0eec35ec866..011edc3759d 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -8076,14 +8076,8 @@ if (TARGET_FLOAT128_HW) emit_insn (gen_neg2_hw (mode, operands[0], operands[1])); else if (TARGET_FLOAT128_TYPE) - { - if (mode == TFmode) - emit_insn (gen_ieee_128bit_vsx_negtf2 (operands[0], operands[1])); - else if (mode == KFmode) - emit_insn (gen_ieee_128bit_vsx_negkf2 (operands[0], operands[1])); - else - gcc_unreachable (); - } + emit_insn (gen_ieee_128bit_vsx_neg2 (mode, + operands[0], operands[1])); else { rtx libfunc = optab_libfunc (neg_optab, mode); @@ -8195,7 +8189,7 @@ ;; twiddle the sign bit. Later GCSE passes can then combine multiple uses of ;; neg/abs to create the constant just once. -(define_insn_and_split "ieee_128bit_vsx_neg2" +(define_insn_and_split "@ieee_128bit_vsx_neg2" [(set (match_operand:IEEE128 0 "register_operand" "=wa") (neg:IEEE128 (match_operand:IEEE128 1 "register_operand" "wa"))) (clobber (match_scratch:V16QI 2 "=v"))] -- 2.30.2