This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RS6000] powerpc64 -mcmodel=medium large symbol offsets


On Mon, Sep 9, 2013 at 5:07 AM, Alan Modra <amodra@gmail.com> wrote:
> Revised patch with testcase.  This one also fixes a small problem with
> reg_or_add_cint_operand in that any 32-bit value is valid for SImode.
> Compare with reg_or_sub_cint_operand.
>
> Bootstrapped and regression tested powerpc64-linux.  OK to apply?
>
> gcc/
>         * config/rs6000/predicates.md (add_cint_operand): New.
>         (reg_or_add_cint_operand): Use add_cint_operand.
>         * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
>         using add_cint_operand.
>         (largetoc_high_plus_aix, small_toc_ref): Likewise.
> gcc/testsuite/
>         * gcc.target/powerpc/medium_offset.c: New.

Okay. This seems much better.

Thanks, David


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]