public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Jakub Jelinek <jakub@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-5752] testsuite: Add testcase for already fixed PR112518 Date: Wed, 22 Nov 2023 10:33:16 +0000 (GMT) [thread overview] Message-ID: <20231122103316.6F5313858D35@sourceware.org> (raw) https://gcc.gnu.org/g:8c24011b2ba0f268e74b72519fc8119c2c99d92b commit r14-5752-g8c24011b2ba0f268e74b72519fc8119c2c99d92b Author: Jakub Jelinek <jakub@redhat.com> Date: Wed Nov 22 11:31:12 2023 +0100 testsuite: Add testcase for already fixed PR112518 This PR has been fixed by the PR112526 fix. 2023-11-22 Jakub Jelinek <jakub@redhat.com> PR target/112518 * gcc.target/i386/bmi2-pr112518.c: New test. Diff: --- gcc/testsuite/gcc.target/i386/bmi2-pr112518.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gcc/testsuite/gcc.target/i386/bmi2-pr112518.c b/gcc/testsuite/gcc.target/i386/bmi2-pr112518.c new file mode 100644 index 00000000000..6aea13f9be8 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/bmi2-pr112518.c @@ -0,0 +1,25 @@ +/* PR target/112518 */ +/* { dg-do run { target { bmi2 && int128 } } } */ +/* { dg-options "-Os -mbmi2" } */ + +#include "bmi2-check.h" + +unsigned u; +int g; + +unsigned long long +foo (int i) +{ + unsigned long long x = u; + g = __builtin_mul_overflow_p (u, ((unsigned __int128) 4292468825) << 64 | 150, 0); + x |= g % i; + return x; +} + +static __attribute__((noipa)) void +bmi2_test () +{ + unsigned long long x = foo (3); + if (x) + __builtin_abort (); +}
reply other threads:[~2023-11-22 10:33 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=20231122103316.6F5313858D35@sourceware.org \ --to=jakub@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).