This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] PR 58542: const_int vs lost modes


On 10/24/2013 05:02 AM, Richard Sandiford wrote:
> Do we actually need to do a conversion here at all?  It looks like the
> modes of "expected" and "desired" should already match "mem", so we could
> just use create_input_operand.

This works.  I've committed the following to mainline, and will
test the patch for backport.


r~


        PR rtl/58542
        * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
        instead of create_convert_operand_to.
        (maybe_emit_sync_lock_test_and_set): Likewise.
        (expand_atomic_compare_and_swap): Likewise.
        (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.

Attachment: d58542
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]