From: ebotcazou Date: Fri, 6 Apr 2012 06:45:16 +0000 (+0000) Subject: * config/ia64/ia64.c (ia64_load_pair_ok): Return 0 if the second member X-Git-Url: http://git.sourceforge.jp/view?a=commitdiff_plain;h=6d5c771d1966409ac48134013d5b52569e6b6d81;p=pf3gnuchains%2Fgcc-fork.git * config/ia64/ia64.c (ia64_load_pair_ok): Return 0 if the second member of the destination isn't also a FP_REGS register. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@186178 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e6127eb4ccb..5f6b62e83ad 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2012-04-06 Eric Botcazou + + * config/ia64/ia64.c (ia64_load_pair_ok): Return 0 if the second member + of the destination isn't also a FP_REGS register. + 2012-04-03 Richard Guenther Backport from mainline diff --git a/gcc/config/ia64/ia64.c b/gcc/config/ia64/ia64.c index b5fad9fd8e0..77be75787b1 100644 --- a/gcc/config/ia64/ia64.c +++ b/gcc/config/ia64/ia64.c @@ -885,7 +885,11 @@ ia64_move_ok (rtx dst, rtx src) int ia64_load_pair_ok (rtx dst, rtx src) { - if (GET_CODE (dst) != REG || !FP_REGNO_P (REGNO (dst))) + /* ??? There is a thinko in the implementation of the "x" constraint and the + FP_REGS class. The constraint will also reject (reg f30:TI) so we must + also return false for it. */ + if (GET_CODE (dst) != REG + || !(FP_REGNO_P (REGNO (dst)) && FP_REGNO_P (REGNO (dst) + 1))) return 0; if (GET_CODE (src) != MEM || MEM_VOLATILE_P (src)) return 0;