Re: [PR96519] Re: [PATCH][testsuite] Add gcc.dg/ia64-sync-5.c

2020-08-12 Thread Richard Sandiford
Kwok Cheung Yeung writes: > Hello > > On 06/08/2020 1:23 pm, Tom de Vries wrote: > > +static char AC[4]; > > +static char init_qi[4] = { -30,-30,-50,-50 }; > > +static char test_qi[4] = { -115,-115,25,25 }; > > + > > +static void > > +do_qi (void) > > +{ > > + if (__sync_val_compare_and_s

[PR96519] Re: [PATCH][testsuite] Add gcc.dg/ia64-sync-5.c

2020-08-11 Thread Kwok Cheung Yeung
Hello On 06/08/2020 1:23 pm, Tom de Vries wrote: > +static char AC[4]; > +static char init_qi[4] = { -30,-30,-50,-50 }; > +static char test_qi[4] = { -115,-115,25,25 }; > + > +static void > +do_qi (void) > +{ > + if (__sync_val_compare_and_swap(AC+0, -30, -115) != -30) > +abort (); If 'char