2005-05-15 H.J. Lu <hongjiu.lu@intel.com>
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 16 May 2005 02:11:59 +0000 (02:11 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 16 May 2005 02:11:59 +0000 (02:11 +0000)
PR target/21551
* config/ia64/ia64.c (ia64_expand_move): Don't add addend twice.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99760 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/ia64/ia64.c

index 2444447..c0f039a 100644 (file)
@@ -1,3 +1,8 @@
+2005-05-15  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR target/21551
+       * config/ia64/ia64.c (ia64_expand_move): Don't add addend twice.
+
 2005-05-15  Daniel Berlin  <dberlin@dberlin.org>
            
        Fix PR tree-optimization/21576
index a4d12c9..da9f55c 100644 (file)
@@ -984,6 +984,8 @@ ia64_expand_move (rtx op0, rtx op1)
              op1 = plus_constant (sym, addend_hi);
              addend = addend_lo;
            }
+         else
+           addend = 0;
        }
       else
        op1 = sym;