From d0e3843ef956205cfecfd26072d66086cb0abf89 Mon Sep 17 00:00:00 2001 From: Segher Boessenkool Date: Mon, 1 Jul 2019 20:37:25 +0200 Subject: [PATCH] rs6000.md (abs2_internal): Make this a parameterized name. @abs2_internal * config/rs6000/rs6000.md (abs2_internal): Make this a parameterized name. (abs2): Use that name. Simplify. From-SVN: r272897 --- gcc/ChangeLog | 6 ++++++ gcc/config/rs6000/rs6000.md | 9 ++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 03e8dab3c49..24d4aa07dad 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-07-01 Segher Boessenkool + + * config/rs6000/rs6000.md (abs2_internal): Make this a + parameterized name. + (abs2): Use that name. Simplify. + 2019-07-01 Segher Boessenkool * config/rs6000/rs6000.md (fix_truncsi2_fprs): Make this a diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index f011035e88d..69465ed4e44 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -8169,17 +8169,12 @@ } label = gen_label_rtx (); - if (mode == TFmode) - emit_insn (gen_abstf2_internal (operands[0], operands[1], label)); - else if (mode == IFmode) - emit_insn (gen_absif2_internal (operands[0], operands[1], label)); - else - FAIL; + emit_insn (gen_abs2_internal (mode, operands[0], operands[1], label)); emit_label (label); DONE; }) -(define_expand "abs2_internal" +(define_expand "@abs2_internal" [(set (match_operand:IBM128 0 "gpc_reg_operand") (match_operand:IBM128 1 "gpc_reg_operand")) (set (match_dup 3) (match_dup 5)) -- 2.30.2