Commit f98342ad by Segher Boessenkool Committed by Segher Boessenkool

rs6000.md (ctr<mode>): Make this a parameterized name.

@ctr<mode>


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

From-SVN: r272899
parent d1fcc7f3
2019-07-01 Segher Boessenkool <segher@kernel.crashing.org> 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
* config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
(doloop_end): Use that name. Simplify.
2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
* config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
parameterized name. parameterized name.
(indirect_jump): Use that name. Simplify. (indirect_jump): Use that name. Simplify.
......
...@@ -12572,22 +12572,14 @@ ...@@ -12572,22 +12572,14 @@
(use (match_operand 1))] ; label (use (match_operand 1))] ; label
"" ""
{ {
if (TARGET_64BIT) if (GET_MODE (operands[0]) != Pmode)
{
if (GET_MODE (operands[0]) != DImode)
FAIL;
emit_jump_insn (gen_ctrdi (operands[0], operands[1]));
}
else
{
if (GET_MODE (operands[0]) != SImode)
FAIL; FAIL;
emit_jump_insn (gen_ctrsi (operands[0], operands[1]));
} emit_jump_insn (gen_ctr (Pmode, operands[0], operands[1]));
DONE; DONE;
}) })
(define_expand "ctr<mode>" (define_expand "@ctr<mode>"
[(parallel [(set (pc) [(parallel [(set (pc)
(if_then_else (ne (match_operand:P 0 "register_operand") (if_then_else (ne (match_operand:P 0 "register_operand")
(const_int 1)) (const_int 1))
......
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