Re: [PATCH] x86-64: Check CMPXCHG16B for x86-64-v[234]

2020-10-10 Thread H.J. Lu via Gcc-patches
On Fri, Oct 9, 2020 at 6:17 AM H.J. Lu wrote: > > x86-64-v2 includes CMPXCHG16B. Since -mcx16 enables CMPXCHG16B and > defines __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16, check it in x86-64-v[234] > tests. > > PR target/97250 > * gcc.target/i386/x86-64-v2.c: Verify that > __GCC_H

[PATCH] x86-64: Check CMPXCHG16B for x86-64-v[234]

2020-10-09 Thread H.J. Lu via Gcc-patches
x86-64-v2 includes CMPXCHG16B. Since -mcx16 enables CMPXCHG16B and defines __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16, check it in x86-64-v[234] tests. PR target/97250 * gcc.target/i386/x86-64-v2.c: Verify that __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16 is defined. * gcc.target/