From a01d6debebd86b0cdf77be5dc1130fdf0a856a1d Mon Sep 17 00:00:00 2001 From: Segher Boessenkool Date: Mon, 1 Jul 2019 23:58:47 +0200 Subject: [PATCH] rs6000.md (signbit2_dm): Make this a parameterized name. @signbit2_dm * config/rs6000/rs6000.md (signbit2_dm): Make this a parameterized name. (signbit2): Use that name. Simplify. From-SVN: r272912 --- gcc/ChangeLog | 6 ++++++ gcc/config/rs6000/rs6000.md | 10 ++-------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dad3442b949..00885e67a55 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-07-01 Segher Boessenkool + + * config/rs6000/rs6000.md (signbit2_dm): Make this a + parameterized name. + (signbit2): Use that name. Simplify. + 2019-07-01 Joern Rennecke PR middle-end/66726 diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 9ab9ceb87f5..9e81df9e537 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -4857,13 +4857,7 @@ rtx tmp = gen_reg_rtx (DImode); rtx dest_di = gen_lowpart (DImode, dest); - if (mode == KFmode) - emit_insn (gen_signbitkf2_dm (tmp, src)); - else if (mode == TFmode) - emit_insn (gen_signbittf2_dm (tmp, src)); - else - gcc_unreachable (); - + emit_insn (gen_signbit2_dm (mode, tmp, src)); emit_insn (gen_lshrdi3 (dest_di, tmp, GEN_INT (63))); DONE; } @@ -4893,7 +4887,7 @@ ;; After register allocation, if the _Float128 had originally been in GPRs, the ;; split allows the post reload phases to eliminate the move, and do the shift ;; directly with the register that contains the signbit. -(define_insn_and_split "signbit2_dm" +(define_insn_and_split "@signbit2_dm" [(set (match_operand:DI 0 "gpc_reg_operand" "=r,r") (unspec:DI [(match_operand:SIGNBIT 1 "gpc_reg_operand" "wa,r")] UNSPEC_SIGNBIT))] -- 2.30.2