[03/12] @abs<mode>2_internal

Message ID 0229ca3fae32185297fca8060dd89fe55e46d0ba.1561994239.git.segher@kernel.crashing.org
State New
Headers show
Series
  • rs6000: Use parameterised names
Related show

Commit Message

Segher Boessenkool July 1, 2019, 5:59 p.m.
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.

---
 gcc/config/rs6000/rs6000.md | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

-- 
1.8.3.1

Patch

diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md
index 48ead5e..ca8b0c0 100644
--- a/gcc/config/rs6000/rs6000.md
+++ b/gcc/config/rs6000/rs6000.md
@@ -8163,17 +8163,12 @@  (define_expand "abs<mode>2"
     }
 
   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))