Re: [PATCH] optabs: Allow CAS expanders to fail

2014-02-07 Thread Joseph S. Myers
On Fri, 7 Feb 2014, Andreas Krebbel wrote: > Hi, > > on S/390 128 bit atomic operations are not allowed for misaligned > operands. The expanders are supposed to FAIL in that case. While it > works for the other routines atomic_load/store it does not work > currently during compare and swap expa

Re: [PATCH] optabs: Allow CAS expanders to fail

2014-02-07 Thread Jakub Jelinek
On Fri, Feb 07, 2014 at 12:58:37PM +0100, Andreas Krebbel wrote: > 2014-02-07 Andreas Krebbel > > * optabs.c (expand_atomic_compare_and_swap): Allow expander to > fail. Ok. > --- a/gcc/optabs.c > +++ b/gcc/optabs.c > @@ -7383,12 +7383,13 @@ expand_atomic_compare_and_swap (rtx *pta

[PATCH] optabs: Allow CAS expanders to fail

2014-02-07 Thread Andreas Krebbel
Hi, on S/390 128 bit atomic operations are not allowed for misaligned operands. The expanders are supposed to FAIL in that case. While it works for the other routines atomic_load/store it does not work currently during compare and swap expansion. The patch just turns an expand_insn into maybe_e