From 6783210c18319e47404b330d05db57b858e4d19c Mon Sep 17 00:00:00 2001 From: Segher Boessenkool Date: Mon, 1 Jul 2019 20:47:56 +0200 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/config/rs6000/rs6000.md | 10 +++------- 2 files changed, 9 insertions(+), 7 deletions(-) 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"))] -- 2.30.2