aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorSegher Boessenkool <segher@kernel.crashing.org>2019-07-01 20:37:25 +0200
committerSegher Boessenkool <segher@gcc.gnu.org>2019-07-01 20:37:25 +0200
commitd0e3843ef956205cfecfd26072d66086cb0abf89 (patch)
tree1645d100d185c28c4d3e6def526909fbbb3ac54b /gcc
parentda29b9330adcb9d7ffd3ede2f567116d83664f15 (diff)
downloadgcc-d0e3843ef956205cfecfd26072d66086cb0abf89.zip
gcc-d0e3843ef956205cfecfd26072d66086cb0abf89.tar.gz
gcc-d0e3843ef956205cfecfd26072d66086cb0abf89.tar.bz2
rs6000.md (abs<mode>2_internal): Make this a parameterized name.
@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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/rs6000/rs6000.md9
2 files changed, 8 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 03e8dab..24d4aa0 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,11 @@
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
parameterized name.
(fix_trunc<mode>si2): Use that name. Simplify.
diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md
index f011035e..69465ed 100644
--- a/gcc/config/rs6000/rs6000.md
+++ b/gcc/config/rs6000/rs6000.md
@@ -8169,17 +8169,12 @@
}
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))