gcc: xtensa: fix NAND code in xtensa_expand_atomic
authorMax Filippov <jcmvbkbc@gmail.com>
Tue, 4 Sep 2018 17:43:20 +0000 (17:43 +0000)
committerMax Filippov <jcmvbkbc@gcc.gnu.org>
Tue, 4 Sep 2018 17:43:20 +0000 (17:43 +0000)
commit2a17b2397059117b7334e2e569971a3bc5731abb
tree97b52214aaa5f8ef68ca90e4dee82fbd0ac5295a
parent0bdb34b4c920602acdbcdefee4550abe9a6e0566
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>

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

From-SVN: r264087
gcc/ChangeLog
gcc/config/xtensa/xtensa.c