From: Geoffrey Keating Date: Tue, 18 Mar 2003 19:41:52 +0000 (+0000) Subject: * config/rs6000/rs6000.md (macho_correct_pic): Correct pattern. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8291cc0e52ccbc3ca299a2b1c890d8b7c6e99ea4;p=gcc.git * config/rs6000/rs6000.md (macho_correct_pic): Correct pattern. From-SVN: r64548 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d00d7d0e272..53c75b4c77b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2003-03-18 Geoffrey Keating + + * config/rs6000/rs6000.md (macho_correct_pic): Correct pattern. + 2003-03-18 Richard Henderson * config/ia64/ia64.md (UNSPECV_SETJMP_RECEIVER): New. diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index ae4c65d2579..f978275ecf4 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -9843,12 +9843,12 @@ (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