OSDN Git Service

* config/rs6000/rs6000.md (macho_correct_pic): Correct pattern.
authorgeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Mar 2003 19:41:52 +0000 (19:41 +0000)
committergeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Mar 2003 19:41:52 +0000 (19:41 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64548 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/rs6000/rs6000.md

index d00d7d0..53c75b4 100644 (file)
@@ -1,3 +1,7 @@
+2003-03-18  Geoffrey Keating  <geoffk@apple.com>
+
+       * config/rs6000/rs6000.md (macho_correct_pic): Correct pattern.
+
 2003-03-18  Richard Henderson  <rth@redhat.com>
 
        * config/ia64/ia64.md (UNSPECV_SETJMP_RECEIVER): New.
index ae4c65d..f978275 100644 (file)
 
 (define_insn "macho_correct_pic"
   [(set (match_operand:SI 0 "gpc_reg_operand" "=r")
-       (plus:SI (match_operand:SI 1 "gpc_reg_operand" "=r")
+       (plus:SI (match_operand:SI 1 "gpc_reg_operand" "r")
                 (unspec:SI [(match_operand:SI 2 "immediate_operand" "s")
                             (match_operand:SI 3 "immediate_operand" "s")]
                            16)))]
   "DEFAULT_ABI == ABI_DARWIN"
-  "addis %0,%1,ha16(%2-%3)\n\taddi %1,%1,lo16(%2-%3)"
+  "addis %0,%1,ha16(%2-%3)\n\taddi %0,%0,lo16(%2-%3)"
   [(set_attr "length" "8")])
 
 ;; If the TOC is shared over a translation unit, as happens with all