Commit 576b0863 by Maciej W. Rozycki Committed by Maciej W. Rozycki

MIPS16/GCC: Emit explicit JRC from `casesi_internal_mips16_<mode>' insn

	gcc/
	* config/mips/mips.md (casesi_internal_mips16_<mode>):
	Explicitly switch between JR and JRC for the table jump.  Adjust
	instruction count.

From-SVN: r242517
parent a3be783a
2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
* config/mips/mips.md (casesi_internal_mips16_<mode>):
Explicitly switch between JR and JRC for the table jump. Adjust
instruction count.
2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
* config/mips/mips.md (casesi_internal_mips16_<mode>): Set
`insn_count' to 11 rather than 16.
......@@ -6442,9 +6442,15 @@
output_asm_insn ("<d>addu\t%4, %4, %5", operands);
return "j\t%4";
if (GENERATE_MIPS16E)
return "jrc\t%4";
else
return "jr\t%4";
}
[(set_attr "insn_count" "11")])
[(set (attr "insn_count")
(if_then_else (match_test "GENERATE_MIPS16E")
(const_string "10")
(const_string "11")))])
;; For TARGET_USE_GOT, we save the gp in the jmp_buf as well.
;; While it is possible to either pull it off the stack (in the
......
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