Commit a01d6deb by Segher Boessenkool Committed by Segher Boessenkool

rs6000.md (signbit<mode>2_dm): Make this a parameterized name.

@signbit<mode>2_dm


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

From-SVN: r272912
parent 5cc8cb04
2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
* config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
parameterized name.
(signbit<mode>2): Use that name. Simplify.
2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com> 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
PR middle-end/66726 PR middle-end/66726
......
...@@ -4857,13 +4857,7 @@ ...@@ -4857,13 +4857,7 @@
rtx tmp = gen_reg_rtx (DImode); rtx tmp = gen_reg_rtx (DImode);
rtx dest_di = gen_lowpart (DImode, dest); rtx dest_di = gen_lowpart (DImode, dest);
if (<MODE>mode == KFmode) emit_insn (gen_signbit2_dm (<MODE>mode, tmp, src));
emit_insn (gen_signbitkf2_dm (tmp, src));
else if (<MODE>mode == TFmode)
emit_insn (gen_signbittf2_dm (tmp, src));
else
gcc_unreachable ();
emit_insn (gen_lshrdi3 (dest_di, tmp, GEN_INT (63))); emit_insn (gen_lshrdi3 (dest_di, tmp, GEN_INT (63)));
DONE; DONE;
} }
...@@ -4893,7 +4887,7 @@ ...@@ -4893,7 +4887,7 @@
;; After register allocation, if the _Float128 had originally been in GPRs, the ;; 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 ;; split allows the post reload phases to eliminate the move, and do the shift
;; directly with the register that contains the signbit. ;; directly with the register that contains the signbit.
(define_insn_and_split "signbit<mode>2_dm" (define_insn_and_split "@signbit<mode>2_dm"
[(set (match_operand:DI 0 "gpc_reg_operand" "=r,r") [(set (match_operand:DI 0 "gpc_reg_operand" "=r,r")
(unspec:DI [(match_operand:SIGNBIT 1 "gpc_reg_operand" "wa,r")] (unspec:DI [(match_operand:SIGNBIT 1 "gpc_reg_operand" "wa,r")]
UNSPEC_SIGNBIT))] UNSPEC_SIGNBIT))]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment