From: Kaz Kojima Date: Sun, 31 Jul 2011 23:01:14 +0000 (+0000) Subject: re PR target/49880 (SuperH: ICE when -m4 is used with -mdiv=call-div1) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=05eb5cc3fea20515ef52617660604cc497460598;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7576188f081..7df0ee2d4bc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-07-31 Kaz Kojima + + PR target/49880 + * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1. + (divsi3_i1): Likewise. + 2011-07-31 Bill Schmidt PR tree-optimization/49749 diff --git a/gcc/config/sh/sh.md b/gcc/config/sh/sh.md index 0f7c8a77629..fce2ffddd09 100644 --- a/gcc/config/sh/sh.md +++ b/gcc/config/sh/sh.md @@ -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")])