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] PR target/28909: Use inc/dec for sync_* patterns


Hello!

Attached patch implements an enhancement suggested in PR target/28909.

2006-09-01 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.

Patch is regtested on i686-pc-linux-gnu for c,c++ and fortran. As the
processor is set to i486 in sync-* tests, these new codepaths are
checked.

BTW: It is somehow confusing that in asm dumps, "lock" insn is put in
different line that the locked instruction itself. Objdump puts lock
in the same line as locked insn. Should we also change asm templates
to generate "lock  insn ..."?

Uros.

Attachment: i386-incdec.diff
Description: Binary data


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