Commit d904a983 by Jeff Law Committed by Jeff Law

re PR target/74563 (Classic MIPS16 (non-MIPS16e) function return broken)

	PR target/74563
	* mips.md ({return,simple_return}_internal): Do not overwrite
	operands[0].

	PR target/74563
	* gcc.target/mips/pr74563: New test.

From-SVN: r246987
parent 90e87d4f
2017-04-18 Jeff Law <law@redhat.com>
PR target/74563
* mips.md ({return,simple_return}_internal): Do not overwrite
operands[0].
2017-04-18 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/80443
......
......@@ -6585,7 +6585,6 @@
(use (match_operand 0 "pmode_register_operand" ""))]
""
{
operands[0] = gen_rtx_REG (Pmode, RETURN_ADDR_REGNUM);
return mips_output_jump (operands, 0, -1, false);
}
[(set_attr "type" "jump")
......
2017-04-18 Jeff Law <law@redhat.com>
PR target/74563
* gcc.target/mips/pr74563: New test.
2017-04-18 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/80443
......
/* { dg-do compile } */
/* { dg-options "-mips3 -mips16 -msoft-float" } */
void f2(void);
void f1(void)
{
f2();
}
/* { dg-final { scan-assembler-not "\tjr\t\\\$31" } } */
/* { dg-final { scan-assembler "\tjr\t\\\$7" } } */
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