diff options
author | Alan Modra <amodra@bigpond.net.au> | 2009-09-24 23:57:15 +0000 |
---|---|---|
committer | Alan Modra <amodra@gcc.gnu.org> | 2009-09-25 09:27:15 +0930 |
commit | 3025dff847832845610c4218631fc4451e4de57c (patch) | |
tree | 178fed4c32fd6785f80023df6467051e7b3d8892 /gcc | |
parent | bbffcb7eab761f5223678e7153be5d51560c33eb (diff) | |
download | gcc-3025dff847832845610c4218631fc4451e4de57c.zip gcc-3025dff847832845610c4218631fc4451e4de57c.tar.gz gcc-3025dff847832845610c4218631fc4451e4de57c.tar.bz2 |
rs6000.md (load_toc_v4_PIC_3c): Correct POWER form of instruction.
* config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
form of instruction.
From-SVN: r152148
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.md | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 22ab827..a48fe76 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> PR middle-end/41435 diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 7f50f92..ba51f1c 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -11513,7 +11513,7 @@ (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 |