[ARM] Set mode for success result of atomic compare and swap
authorThomas Preud'homme <thomas.preudhomme@arm.com>
Wed, 3 May 2017 10:11:44 +0000 (10:11 +0000)
committerThomas Preud'homme <thopre01@gcc.gnu.org>
Wed, 3 May 2017 10:11:44 +0000 (10:11 +0000)
commit3cff0135a6cf74c4cb8c03c514a91a6b0ea5b61a
treee215a230eacbd4c657e2c5e671a48f031714457f
parent0ec5af39bde53da8ce957349e3dd574c7d30a8a0
[ARM] Set mode for success result of atomic compare and swap

2017-05-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>

gcc/
    * config/arm/iterators.md (CCSI): New mode iterator.
    (arch): New mode attribute.
    * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Rename into ...
    (atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): This and ...
    (atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): This.  Use CCSI
    code iterator for success result mode.
    * config/arm/arm.c (arm_expand_compare_and_swap): Adapt code to use
    the corresponding new insn generators.

From-SVN: r247542
gcc/ChangeLog
gcc/config/arm/arm.c
gcc/config/arm/iterators.md
gcc/config/arm/sync.md