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] |
On Tue, Apr 10, 2012 at 4:20 PM, Jakub Jelinek <jakub@redhat.com> wrote: > On Tue, Apr 10, 2012 at 06:12:08PM +0400, Kirill Yukhin wrote: >> Attached patch implements HLE support for __atomic_compare_exchange_n. > > The target hook is definitely not appropriate, just define it in > ix86_target_macros in i386-c.c instead or so. Also, I think it is better to pass operand that holds the model constant to the final insn and conditionally output xacquire/xrelease based on INTVAL of this operand. Something like in attached patch, but probably with a helper function in i386.c. Uros.
Attachment:
h.diff.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |