Commit bfd9cff5 by David Daney Committed by David Daney

mips.md (UNSPEC_MEMORY_BARRIER): New entry in define_constants.

	* config/mips/mips.md (UNSPEC_MEMORY_BARRIER): New entry in
	define_constants.
	(memory_barrier): Rewrote as an insn that clobbers memory.

From-SVN: r128349
parent 04910611
2007-09-10 David Daney <ddaney@avtrex.com>
* config/mips/mips.md (UNSPEC_MEMORY_BARRIER): New entry in
define_constants.
(memory_barrier): Rewrote as an insn that clobbers memory.
2007-09-10 Richard Sandiford <richard@codesourcery.com>
* config/mips/mips.c (mips_global_pointer): Check
......@@ -57,6 +57,7 @@
(UNSPEC_SYNC_OLD_OP 38)
(UNSPEC_SYNC_NEW_OP 39)
(UNSPEC_SYNC_EXCHANGE 40)
(UNSPEC_MEMORY_BARRIER 41)
(UNSPEC_ADDRESS_FIRST 100)
......@@ -4304,10 +4305,11 @@
;; Atomic memory operations.
(define_expand "memory_barrier"
[(unspec_volatile [(const_int 0)] UNSPEC_SYNC)]
(define_insn "memory_barrier"
[(set (mem:BLK (scratch))
(unspec:BLK [(const_int 0)] UNSPEC_MEMORY_BARRIER))]
"ISA_HAS_SYNC"
"")
"sync")
(define_insn "sync_compare_and_swap<mode>"
[(set (match_operand:GPR 0 "register_operand" "=&d,d")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment