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

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

2020-08-06 Thread Mike Stump via Gcc-patches
On Aug 6, 2020, at 5:23 AM, Tom de Vries wrote: > > There currently is no sync_char_short-enabled run test that tests > __sync_val_compare_and_swap. > > OK for trunk? Ok.

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

2020-08-06 Thread Tom de Vries
Hi, There currently is no sync_char_short-enabled run test that tests __sync_val_compare_and_swap. Fix this by copying ia64-sync-3.c and modifying it for char/short. Tested on x86_64. OK for trunk? Thanks, - Tom [testsuite] Add gcc.dg/ia64-sync-5.c 2020-08-06 Kwok Cheung Yeung