Re: SPARC LEON3 and CAS instruction

2014-05-01 Thread Eric Botcazou
> I think its more natural to generate user-space code by default. Well, the other architectures I know of think differently so we'll follow them. -- Eric Botcazou

Re: SPARC LEON3 and CAS instruction

2014-04-29 Thread Sebastian Huber
On 2014-04-28 10:14, Eric Botcazou wrote: Ok, this makes sense. Which default to you have in mind for the -muser-mode >option? -mno-user-mode the default, it's usually what's done in this case I think. I think its more natural to generate user-space code by default. -- Sebastian Huber, embed

Re: SPARC LEON3 and CAS instruction

2014-04-28 Thread Eric Botcazou
> Ok, this makes sense. Which default to you have in mind for the -muser-mode > option? -mno-user-mode the default, it's usually what's done in this case I think. -- Eric Botcazou

Re: SPARC LEON3 and CAS instruction

2014-04-28 Thread Sebastian Huber
On 2014-04-28 10:02, Eric Botcazou wrote: Thanks, since this -muser-mode seems to be something new, maybe we should >instead use -mcas=supervisor|user to make it more specific? I don't think so, we might need to extend its purview in the future. Ok, this makes sense. Which default to you have

Re: SPARC LEON3 and CAS instruction

2014-04-28 Thread Eric Botcazou
> Thanks, since this -muser-mode seems to be something new, maybe we should > instead use -mcas=supervisor|user to make it more specific? I don't think so, we might need to extend its purview in the future. -- Eric Botcazou

Re: SPARC LEON3 and CAS instruction

2014-04-28 Thread Sebastian Huber
On 2014-04-25 18:31, Eric Botcazou wrote: recent GCC versions support the C11 atomic operations for the SPARC LEON3 processor via the CASA instruction. GCC emits CASA instructions with an ASI of 0x80. I think this is due to the usage of "cas" if I get the stuff in sync.md right: "(define_insn

Re: SPARC LEON3 and CAS instruction

2014-04-25 Thread Daniel Gutson
On Fri, Apr 25, 2014 at 1:31 PM, Eric Botcazou wrote: >> recent GCC versions support the C11 atomic operations for the SPARC LEON3 >> processor via the CASA instruction. GCC emits CASA instructions with an ASI >> of 0x80. I think this is due to the usage of "cas" if I get the stuff in >> sync.md

Re: SPARC LEON3 and CAS instruction

2014-04-25 Thread Eric Botcazou
> recent GCC versions support the C11 atomic operations for the SPARC LEON3 > processor via the CASA instruction. GCC emits CASA instructions with an ASI > of 0x80. I think this is due to the usage of "cas" if I get the stuff in > sync.md right: > > "(define_insn "*atomic_compare_and_swap_1" >