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 memory operation builtins, ia64


Richard Henderson <rth@redhat.com> writes:

> +(define_expand "memory_barrier"
> +  [(set (mem:BLK (match_dup 0))
> +	(unspec:BLK [(mem:BLK (match_dup 0))] UNSPEC_MF))]
> +  ""
> +{
> +  operands[0] = gen_rtx_MEM (BLKmode, gen_rtx_SCRATCH (DImode));
> +  MEM_VOLATILE_P (operands[0]) = 1;
> +})

Is this really supposed to be generating

(set (mem:BLK (mem:BLK (scratch))) ...)

?


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