On Tue, Jun 11, 2013 at 7:53 PM, Michael Meissner
<meiss...@linux.vnet.ibm.com> wrote:
> I needed to rework the sync.md so that it would work correctly with no
> optimization (using SUBREG's at -O0 did not give us the even registers for
> holding PTImode values, so I created a PTImode temporary in load_lockedti and
> store_conditionalti, which is normally optimized out.
>
> [gcc]
> 2013-06-11  Michael Meissner  <meiss...@linux.vnet.ibm.com>
>             Pat Haugen <pthau...@us.ibm.com>
>             Peter Bergner <berg...@vnet.ibm.com>
>
>         * config/rs6000/rs6000.c (emit_load_locked): Add support for
>         power8 byte, half-word, and quad-word atomic instructions.
>         (emit_store_conditional): Likewise.
>         (rs6000_expand_atomic_compare_and_swap): Likewise.
>         (rs6000_expand_atomic_op): Likewise.
>
>         * config/rs6000/sync.md (larx): Add new modes for power8.
>         (stcx): Likewise.
>         (AINT): New mode iterator to include TImode as well as normal
>         integer modes on power8.
>         (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
>         that VSX registers are not considered.  Use AINT mode iterator
>         instead of INT1 to allow inclusion of quad word atomic operations
>         on power8.
>         (load_locked<mode>): Likewise.
>         (store_conditional<mode>): Likewise.
>         (atomic_compare_and_swap<mode>): Likewise.
>         (atomic_exchange<mode>): Likewise.
>         (atomic_nand<mode>): Likewise.
>         (atomic_fetch_<fetchop_name><mode>): Likewise.
>         (atomic_nand_fetch<mode>): Likewise.
>         (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
>         each type.
>         (ATOMIC): On power8, add QImode, HImode modes.
>         (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
>         modes that promote to SImode.
>         (load_lockedti): Convert TImode arguments to PTImode, so that we
>         get a guaranteed even/odd register pair.
>         (load_lockedpti): Likewise.
>         (store_conditionalti): Likewise.
>         (store_conditionalpti): Likewise.
>
>         * config/rs6000/rs6000.md (QHI): New mode iterator for power8
>         atomic load/store instructions.
>         (HSI): Likewise.
>
> [gcc/testsuite]
> 2013-06-11  Michael Meissner  <meiss...@linux.vnet.ibm.com>
>             Pat Haugen <pthau...@us.ibm.com>
>             Peter Bergner <berg...@vnet.ibm.com>
>
>         * gcc.target/powerpc/atomic-p7.c: New file, add tests for atomic
>         load/store instructions on power7, power8.
>         * gcc.target/powerpc/atomic-p8.c: Likewise.
>
> Given these changes went beyond the original request to fix a spelling error
> and improve the logic, I figured to send these patches out again.  David, do
> you have any problem with the new patches?

The new patches are okay.  Thanks for re-checking.

Thanks, David

Reply via email to