[Patch] MIPS: Factor atomic memory operations into their own .md file.

David Daney ddaney@avtrex.com
Sun Aug 24 09:03:00 GMT 2008


This is a very mechanical patch that moves 527 lines of code from
mips.md to a new file sync.md.  I discussed this with Richard when
working on the atomic memory operations, and finally got around to doing it.

I am attaching the patch gzipped as it is over 1000 lines long and not
very interesting.

Bootstrapped and tested on mipsel-linux.

OK to commit?

2008-08-23  David Daney  <ddaney@avtrex.com>

	* config/mips/mips.md (fetchop_bit, immediate_insn, atomic_hiqi_op
	memory_barrier, sync_compare_and_swap<mode>,
	compare_and_swap_12, sync_add<mode>, sync_<optab><mode>,
	sync_<optab>_12, sync_old_<optab><mode>, sync_old_<optab>_12,
	sync_new_<optab><mode>, sync_new_<optab>_12, sync_nand<mode>,
	sync_nand_12, sync_old_nand<mode>, sync_old_nand_12,
	sync_new_nand<mode>, sync_new_nand_12, sync_sub<mode>,
	sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
	sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
	sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
	sync_new_nand<mode>, sync_lock_test_and_set<mode>,
	sync_lock_test_and_set<mode>, test_and_set_12):  Moved to sync.md.
	(sync.md): Include.
	* config/mips/sync.md: New file.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: seperate_sync.diff.gz
Type: application/x-gzip
Size: 3732 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080824/f2fdb6e0/attachment.bin>


More information about the Gcc-patches mailing list