[10/12] @abs<mode>2_hw

Message ID 468ba9b241b5f9a014775d6993232a6e47fde84e.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_hw): 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 27fdc4f..974f0b1 100644
--- a/gcc/config/rs6000/rs6000.md
+++ b/gcc/config/rs6000/rs6000.md
@@ -8117,12 +8117,7 @@  (define_expand "abs<mode>2"
     {
       if (TARGET_FLOAT128_HW)
 	{
-	  if (<MODE>mode == TFmode)
-	    emit_insn (gen_abstf2_hw (operands[0], operands[1]));
-	  else if (<MODE>mode == KFmode)
-	    emit_insn (gen_abskf2_hw (operands[0], operands[1]));
-	  else
-	    FAIL;
+	  emit_insn (gen_abs2_hw (<MODE>mode, operands[0], operands[1]));
 	  DONE;
 	}
       else if (TARGET_FLOAT128_TYPE)
@@ -13908,7 +13903,7 @@  (define_insn "@neg<mode>2_hw"
    (set_attr "size" "128")])
 
 
-(define_insn "abs<mode>2_hw"
+(define_insn "@abs<mode>2_hw"
   [(set (match_operand:IEEE128 0 "altivec_register_operand" "=v")
 	(abs:IEEE128
 	 (match_operand:IEEE128 1 "altivec_register_operand" "v")))]