public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: H.J. Lu <hjl@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r11-3764] x86-64: Check CMPXCHG16B for x86-64-v[234] Date: Sat, 10 Oct 2020 12:31:12 +0000 (GMT) [thread overview] Message-ID: <20201010123112.191F63857C52@sourceware.org> (raw) https://gcc.gnu.org/g:16664e6e4fb4281be6477c13989740d44c963c77 commit r11-3764-g16664e6e4fb4281be6477c13989740d44c963c77 Author: H.J. Lu <hjl.tools@gmail.com> Date: Fri Oct 9 06:12:17 2020 -0700 x86-64: Check CMPXCHG16B for x86-64-v[234] 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/i386/x86-64-v3.c: Likewise. * gcc.target/i386/x86-64-v4.c: Likewise. Diff: --- gcc/testsuite/gcc.target/i386/x86-64-v2.c | 3 +++ gcc/testsuite/gcc.target/i386/x86-64-v3.c | 3 +++ gcc/testsuite/gcc.target/i386/x86-64-v4.c | 3 +++ 3 files changed, 9 insertions(+) diff --git a/gcc/testsuite/gcc.target/i386/x86-64-v2.c b/gcc/testsuite/gcc.target/i386/x86-64-v2.c index 0f3df3605b5..f17a15de9b6 100644 --- a/gcc/testsuite/gcc.target/i386/x86-64-v2.c +++ b/gcc/testsuite/gcc.target/i386/x86-64-v2.c @@ -12,6 +12,9 @@ #ifndef __SSE2__ # error __SSE2__ not defined #endif +#ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16 +# error __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16 not defined +#endif #ifndef __LAHF_SAHF__ # error __LAHF_SAHF__ not defined #endif diff --git a/gcc/testsuite/gcc.target/i386/x86-64-v3.c b/gcc/testsuite/gcc.target/i386/x86-64-v3.c index 16a94b18021..784202fb26f 100644 --- a/gcc/testsuite/gcc.target/i386/x86-64-v3.c +++ b/gcc/testsuite/gcc.target/i386/x86-64-v3.c @@ -12,6 +12,9 @@ #ifndef __SSE2__ # error __SSE2__ not defined #endif +#ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16 +# error __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16 not defined +#endif #ifndef __LAHF_SAHF__ # error __LAHF_SAHF__ not defined #endif diff --git a/gcc/testsuite/gcc.target/i386/x86-64-v4.c b/gcc/testsuite/gcc.target/i386/x86-64-v4.c index 48e928c2955..7c202a42068 100644 --- a/gcc/testsuite/gcc.target/i386/x86-64-v4.c +++ b/gcc/testsuite/gcc.target/i386/x86-64-v4.c @@ -12,6 +12,9 @@ #ifndef __SSE2__ # error __SSE2__ not defined #endif +#ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16 +# error __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16 not defined +#endif #ifndef __LAHF_SAHF__ # error __LAHF_SAHF__ not defined #endif
reply other threads:[~2020-10-10 12:31 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20201010123112.191F63857C52@sourceware.org \ --to=hjl@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).