]> gcc.gnu.org Git - gcc.git/commit
gcc: xtensa: fix NAND code in xtensa_expand_atomic
authorMax Filippov <jcmvbkbc@gmail.com>
Tue, 4 Sep 2018 17:59:04 +0000 (17:59 +0000)
committerMax Filippov <jcmvbkbc@gcc.gnu.org>
Tue, 4 Sep 2018 17:59:04 +0000 (17:59 +0000)
commit6d447fc0b9d29d39525d458904ae90b7f3025842
treeabd5f157a03e4bc6bfd25b677c060f341d91b90e
parentc256655f90a5e4d21eb3e8559b5164c492e7ebe4
gcc: xtensa: fix NAND code in xtensa_expand_atomic

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>

Backport from mainline
2018-09-04  Max Filippov  <jcmvbkbc@gmail.com>

* config/xtensa/xtensa.c (xtensa_expand_atomic): Reorder AND and
XOR operations in NAND case.

From-SVN: r264090
gcc/ChangeLog
gcc/config/xtensa/xtensa.c
This page took 0.059103 seconds and 5 git commands to generate.