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]

Re: atomic ops for powerpc


On Thu, Apr 21, 2005 at 02:11:23PM -0700, Geoffrey Keating wrote:
> +(define_expand "sync_lock_release<mode>"
> +  [(use (match_operand:INT 0 "memory_operand"))]
> +  ""
> +  "
> +{
> +  emit_insn (gen_lwsync ());
> +  emit_move_insn (operands[0], CONST0_RTX (<MODE>mode));
> +  DONE;
> +}")

This is a two-operand pattern.


r~


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