]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
rs6000.md (load_toc_v4_PIC_3c): Correct POWER form of instruction.
authorAlan Modra <amodra@bigpond.net.au>
Fri, 25 Sep 2009 00:03:49 +0000 (00:03 +0000)
committerAlan Modra <amodra@gcc.gnu.org>
Fri, 25 Sep 2009 00:03:49 +0000 (09:33 +0930)
* config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
form of instruction.

From-SVN: r152150

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

index 76efd04f3a97ef659211954ce16dacf4c984501f..458f80c158d0ca8feac0fb8bfff140e57064d968 100644 (file)
@@ -1,3 +1,8 @@
+2009-09-25  Alan Modra  <amodra@bigpond.net.au>
+
+       * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
+       form of instruction.
+
 2009-09-23  Alan Modra  <amodra@bigpond.net.au>
 
        PR target/40473
index 65a536b9fa4320a9bfe3b81bfe1286db537a4e47..4bbe778a3c8e4cda5d38e78c67c235b96210dbcb 100644 (file)
                   (minus:SI (match_operand:SI 2 "symbol_ref_operand" "s")
                             (match_operand:SI 3 "symbol_ref_operand" "s"))))]
   "TARGET_ELF && TARGET_SECURE_PLT && DEFAULT_ABI != ABI_AIX && flag_pic"
-  "{cal|addi} %0,%1,%2-%3@l")
+  "{cal %0,%2-%3@l(%1)|addi %0,%1,%2-%3@l}")
 
 ;; If the TOC is shared over a translation unit, as happens with all
 ;; the kinds of PIC that we support, we need to restore the TOC