[PATCH v3] x86: Add -mindirect-branch-cs-prefix

H.J. Lu hjl.tools@gmail.com
Thu Nov 18 14:24:15 GMT 2021


On Thu, Nov 18, 2021 at 12:25 AM Uros Bizjak <ubizjak@gmail.com> wrote:
>
> On Wed, Nov 17, 2021 at 2:47 PM H.J. Lu <hjl.tools@gmail.com> wrote:
> >
> > Add -mindirect-branch-cs-prefix to add CS prefix to call and jmp to thunk
> > via r8-r15 registers when converting indirect call and jump to increase
> > the instruction length to 6, allowing the non-thunk form to be inlined.
> >
> > gcc/
> >
> >         PR target/102952
> >         * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): Emit
> >         CS prefix for -mindirect-branch-cs-prefix.
> >         (ix86_output_indirect_branch_via_reg): Likewise.
> >         * config/i386/i386.opt: Add -mindirect-branch-cs-prefix.
> >         * doc/invoke.texi: Document -mindirect-branch-cs-prefix.
> >
> > gcc/testsuite/
> >
> >         PR target/102952
> >         * gcc.target/i386/indirect-thunk-cs-prefix-1.c: New test.
> >         * gcc.target/i386/indirect-thunk-cs-prefix-2.c: Likewise.
>
> It is hard for me to parse the description, both in the commit message
> and in the option description and documentation. Can you please reword
> them to be more comprehensible?
>
>

Here is the v3 patch with updated description.  OK for master?

Thanks.

-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: v3-0001-x86-Add-mindirect-branch-cs-prefix.patch
Type: text/x-patch
Size: 5851 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20211118/8e7281e3/attachment-0001.bin>


More information about the Gcc-patches mailing list