2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
+ * config/sh/sh-protos.h (prepare_move_operands): Return void
+ instead of int.
+ * config/sh/sh.c (prepare_move_operands): Likewise.
+ * config/sh/sh.md: Remove return value checks of prepare_move_operands.
+
+2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
+
* config/sh/sh-protos.h (fp_int_operand, symbol_ref_operand,
general_movsrc_operand, general_movdst_operand, arith_reg_operand,
fp_arith_reg_operand, arith_operand, arith_reg_or_0_operand,
extern void emit_df_insn (rtx);
extern void output_pic_addr_const (FILE *, rtx);
extern bool expand_block_move (rtx *);
-extern int prepare_move_operands (rtx[], enum machine_mode mode);
+extern void prepare_move_operands (rtx[], enum machine_mode mode);
extern enum rtx_code prepare_cbranch_operands (rtx *, enum machine_mode mode,
enum rtx_code comparison);
extern void expand_cbranchsi4 (rtx *operands, enum rtx_code comparison, int);
(match_operand:SI 1 "general_movsrc_operand" ""))]
""
{
- if (prepare_move_operands (operands, SImode))
- DONE;
+ prepare_move_operands (operands, SImode);
})
(define_expand "ic_invalidate_line"
(match_operand:QI 1 "general_operand" ""))]
""
{
- if (prepare_move_operands (operands, QImode))
- DONE;
+ prepare_move_operands (operands, QImode);
})
;; If movqi_reg_reg is specified as an alternative of movqi, movqi will be
(match_operand:HI 1 "general_movsrc_operand" ""))]
""
{
- if (prepare_move_operands (operands, HImode))
- DONE;
+ prepare_move_operands (operands, HImode);
})
(define_expand "reload_inhi"
(match_operand:DI 1 "general_movsrc_operand" ""))]
""
{
- if (prepare_move_operands (operands, DImode))
- DONE;
+ prepare_move_operands (operands, DImode);
})
(define_insn "movdf_media"
(match_operand:DF 1 "general_movsrc_operand" ""))]
""
{
- if (prepare_move_operands (operands, DFmode))
- DONE;
+ prepare_move_operands (operands, DFmode);
if (TARGET_SHMEDIA)
{
if (TARGET_SHMEDIA_FPU)
(match_operand:V2SF 1 "nonimmediate_operand" ""))]
"TARGET_SHMEDIA_FPU"
{
- if (prepare_move_operands (operands, V2SFmode))
- DONE;
+ prepare_move_operands (operands, V2SFmode);
})
(define_expand "addv2sf3"
(match_operand:V4SF 1 "general_operand" ""))]
"TARGET_SHMEDIA_FPU"
{
- if (prepare_move_operands (operands, V4SFmode))
- DONE;
+ prepare_move_operands (operands, V4SFmode);
})
(define_insn_and_split "*movv16sf_i"
(match_operand:V16SF 1 "nonimmediate_operand" "f,m,f"))]
"TARGET_SHMEDIA_FPU"
{
- if (prepare_move_operands (operands, V16SFmode))
- DONE;
+ prepare_move_operands (operands, V16SFmode);
})
(define_insn "movsf_media"
(match_operand:SF 1 "general_movsrc_operand" ""))]
""
{
- if (prepare_move_operands (operands, SFmode))
- DONE;
+ prepare_move_operands (operands, SFmode);
if (TARGET_SHMEDIA)
{
if (TARGET_SHMEDIA_FPU)
(match_operand:V8QI 1 "general_movsrc_operand" ""))]
"TARGET_SHMEDIA"
{
- if (prepare_move_operands (operands, V8QImode))
- DONE;
+ prepare_move_operands (operands, V8QImode);
})
(define_insn "movv8qi_i"
(match_operand:V2HI 1 "general_movsrc_operand" ""))]
"TARGET_SHMEDIA"
{
- if (prepare_move_operands (operands, V2HImode))
- DONE;
+ prepare_move_operands (operands, V2HImode);
})
(define_insn "movv2hi_i"
(match_operand:V4HI 1 "general_movsrc_operand" ""))]
"TARGET_SHMEDIA"
{
- if (prepare_move_operands (operands, V4HImode))
- DONE;
+ prepare_move_operands (operands, V4HImode);
})
(define_insn "movv4hi_i"
(match_operand:V2SI 1 "general_movsrc_operand" ""))]
"TARGET_SHMEDIA"
{
- if (prepare_move_operands (operands, V2SImode))
- DONE;
+ prepare_move_operands (operands, V2SImode);
})
(define_insn "movv2si_i"