re PR target/49880 (SuperH: ICE when -m4 is used with -mdiv=call-div1)

PR target/49880
	* config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
	(divsi3_i1): Likewise.

From-SVN: r176990
This commit is contained in:
Kaz Kojima 2011-07-31 23:01:14 +00:00
parent 2583cc9a44
commit 05eb5cc3fe
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2011-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
PR target/49880
* config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
(divsi3_i1): Likewise.
2011-07-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
PR tree-optimization/49749

View File

@ -1609,7 +1609,7 @@
(clobber (reg:SI PR_REG))
(clobber (reg:SI R4_REG))
(use (match_operand:SI 1 "arith_reg_operand" "r"))]
"TARGET_SH1 && ! TARGET_SH4"
"TARGET_SH1 && (! TARGET_SH4 || TARGET_DIVIDE_CALL_DIV1)"
"jsr @%1%#"
[(set_attr "type" "sfunc")
(set_attr "needs_delay_slot" "yes")])
@ -1815,7 +1815,7 @@
(clobber (reg:SI R2_REG))
(clobber (reg:SI R3_REG))
(use (match_operand:SI 1 "arith_reg_operand" "r"))]
"TARGET_SH1 && ! TARGET_SH4"
"TARGET_SH1 && (! TARGET_SH4 || TARGET_DIVIDE_CALL_DIV1)"
"jsr @%1%#"
[(set_attr "type" "sfunc")
(set_attr "needs_delay_slot" "yes")])