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
On Tue, Sep 4, 2018 at 10:35 AM, augustine.sterling@gmail.com
<augustine.sterling@gmail.com> wrote:
> 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.
Thanks. Applied to trunk and gcc-[678] branches.
--
Thanks.
-- Max