This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH v2] gcc: xtensa: fix NAND code in xtensa_expand_atomic
- From: "augustine dot sterling at gmail dot com" <augustine dot sterling at gmail dot com>
- To: Max Filippov <jcmvbkbc at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org, linux-xtensa at linux-xtensa dot org
- Date: Tue, 4 Sep 2018 10:35:59 -0700
- Subject: Re: [PATCH v2] gcc: xtensa: fix NAND code in xtensa_expand_atomic
- References: <20180904164222.28820-1-jcmvbkbc@gmail.com>
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.