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: [PATCH v2] gcc: xtensa: fix NAND code in xtensa_expand_atomic


On Tue, Sep 4, 2018 at 9:42 AM Max Filippov <jcmvbkbc@gmail.com> wrote:

> NAND is ~(a1 & a2), but xtensa_expand_atomic does ~a1 & a2.
> That fixes libatomic tests atomic-op-{1,2}.
>
> gcc/
> 2018-09-04  Max Filippov  <jcmvbkbc@gmail.com>
>
>         * config/xtensa/xtensa.c (xtensa_expand_atomic): Reorder AND and
>         XOR operations in NAND case.
>

Approved.


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