[PATCH v2] Check optab before transforming atomic bit test and operations

H.J. Lu hjl.tools@gmail.com
Fri Nov 12 18:20:15 GMT 2021


On Fri, Nov 12, 2021 at 8:13 AM Jakub Jelinek <jakub@redhat.com> wrote:
>
> On Fri, Nov 12, 2021 at 07:55:26AM -0800, H.J. Lu wrote:
> > > I have following patch queued for testing for this...
> > >
> > > 2021-11-12  Jakub Jelinek  <jakub@redhat.com>
> > >
> > >         PR target/103205
> > >         * config/i386/sync.md (atomic_bit_test_and_set<mode>,
> > >         atomic_bit_test_and_complement<mode>,
> > >         atomic_bit_test_and_reset<mode>): Use OPTAB_WIDEN instead of
> > >         OPTAB_DIRECT.
> > >
> > >         * gcc.target/i386/pr103205.c: New test.
> >
> > Can you include my tests?  Or you can leave out your test and I can check
> > in my tests after your fix has been checked in.
>
> I'd prefer the latter.
>

Here is the v2 patch on top of yours.

-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: v2-0001-Check-optab-before-transforming-atomic-bit-test-a.patch
Type: text/x-patch
Size: 6489 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20211112/5cd830c7/attachment-0001.bin>


More information about the Gcc-patches mailing list