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]

[PATCH, commited] PR target/28909: Use inc/dec for i386 sync_* patterns:


On 10/24/06, Uros Bizjak <ubizjak@gmail.com> wrote:

1) [PATCH] PR target/28909: Use inc/dec for i386 sync_* patterns:
http://gcc.gnu.org/ml/gcc-patches/2006-09/msg00010.html

I went ahead and commit this patch, as it is both straightforward and quite trivial. IMO reviewers have better ways to spend their time than to look after this kind of stuff.

In addition to new asm patterns, existing asm patterns were changed
for -masm=intel case to be consistent with "rep ..." prefixed patterns
from i386.md.

Patch was bootstrapped on i686-pc-linux-gnu and regression tested for
c,c++ and fortran. It implements enhancement request from PR
target/28909.

2006-10-25 Uros Bizjak <uros@kss-loka.si>

	PR target/28909
	* config/i386/sync.md ("sync_add<mode>", "sync_sub<mode>"):
	Use inc and dec instructions for TARGET_USE_INCDEC.
	("*sync_compare_and_swap<mode>"): Fix -masm=intel template.
	("sync_double_compare_and_swap<mode>"): Likewise.
	("*sync_double_compare_and_swapdi_pic"): Likewise.
	("*sync_compare_and_swap_cc<mode>"): Likewise.
	("sync_double_compare_and_swap_cc<mode>"): Likewise.
	("*sync_double_compare_and_swap_ccdi_pic"): Likewise.
	("sync_old_add<mode>"): Likewise.
	("sync_lock_test_and_set<mode>"): Likewise.
	("sync_lock_test_and_set<mode>"): Likewise.
	("sync_add<mode>"): Likewise.
	("sync_sub<mode>"): Likewise.
	("sync_ior<mode>"): Likewise.
	("sync_and<mode>"): Likewise.
	("sync_xor<mode>"): Likewise.

Uros.

Attachment: i386-incdec-2.diff
Description: Binary data


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