From e364ab3ab7e21141218956a59dba88f04c34f8b9 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Sun, 19 Jun 2005 09:36:46 -0700 Subject: [PATCH] vect.md (vec_extractv2sf_1): Fix cut-and-paste error; the shift is always required. * config/ia64/vect.md (vec_extractv2sf_1): Fix cut-and-paste error; the shift is always required. From-SVN: r101186 --- gcc/ChangeLog | 5 +++++ gcc/config/ia64/vect.md | 16 ++++------------ 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 460489b8645..678b0c52a5f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-06-19 Richard Henderson + + * config/ia64/vect.md (vec_extractv2sf_1): Fix cut-and-paste error; + the shift is always required. + 2005-06-19 Richard Henderson * config/ia64/ia64-modes.def (V4SF): Add. diff --git a/gcc/config/ia64/vect.md b/gcc/config/ia64/vect.md index c9dcf080e58..c2f8a1a7cac 100644 --- a/gcc/config/ia64/vect.md +++ b/gcc/config/ia64/vect.md @@ -1070,7 +1070,7 @@ }) (define_insn_and_split "*vec_extractv2sf_1" - [(set (match_operand:SF 0 "register_operand" "=rf") + [(set (match_operand:SF 0 "register_operand" "=r") (unspec:SF [(match_operand:V2SF 1 "register_operand" "r") (const_int 1)] UNSPEC_VECT_EXTR))] @@ -1079,17 +1079,9 @@ "reload_completed" [(const_int 0)] { - if (FR_REGNO_P (REGNO (operands[0]))) - { - operands[1] = gen_rtx_REG (SFmode, REGNO (operands[1])); - emit_move_insn (operands[0], operands[1]); - } - else - { - operands[0] = gen_rtx_REG (DImode, REGNO (operands[0])); - operands[1] = gen_rtx_REG (DImode, REGNO (operands[1])); - emit_insn (gen_lshrdi3 (operands[0], operands[1], GEN_INT (32))); - } + operands[0] = gen_rtx_REG (DImode, REGNO (operands[0])); + operands[1] = gen_rtx_REG (DImode, REGNO (operands[1])); + emit_insn (gen_lshrdi3 (operands[0], operands[1], GEN_INT (32))); DONE; }) -- 2.30.2