rs6000.md (abs<mode>2_internal): Make this a parameterized name.
authorSegher Boessenkool <segher@kernel.crashing.org>
Mon, 1 Jul 2019 18:37:25 +0000 (20:37 +0200)
committerSegher Boessenkool <segher@gcc.gnu.org>
Mon, 1 Jul 2019 18:37:25 +0000 (20:37 +0200)
@abs<mode>2_internal

* config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
parameterized name.
(abs<mode>2): Use that name.  Simplify.

From-SVN: r272897

gcc/ChangeLog
gcc/config/rs6000/rs6000.md

index 03e8dab3c4958856de3179843aa109501ba892ed..24d4aa07dadff65b93cfff1d6d7711794c6a6227 100644 (file)
@@ -1,3 +1,9 @@
+2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
+
+       * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
+       parameterized name.
+       (abs<mode>2): Use that name.  Simplify.
+
 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
 
        * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
index f011035e88dc3407a6c20a7e9d48c8dfe6a4d74c..69465ed4e440cea55d5cdbc8e0cd2ce083978437 100644 (file)
     }
 
   label = gen_label_rtx ();
-  if (<MODE>mode == TFmode)
-    emit_insn (gen_abstf2_internal (operands[0], operands[1], label));
-  else if (<MODE>mode == IFmode)
-    emit_insn (gen_absif2_internal (operands[0], operands[1], label));
-  else
-    FAIL;
+  emit_insn (gen_abs2_internal (<MODE>mode, operands[0], operands[1], label));
   emit_label (label);
   DONE;
 })
 
-(define_expand "abs<mode>2_internal"
+(define_expand "@abs<mode>2_internal"
   [(set (match_operand:IBM128 0 "gpc_reg_operand")
        (match_operand:IBM128 1 "gpc_reg_operand"))
    (set (match_dup 3) (match_dup 5))