public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Andrew Pinski <pinskia@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-5845] Fix gcc.target/aarch64/movk.c testcase after IPA-VRP improvement for return values Date: Sat, 25 Nov 2023 21:36:55 +0000 (GMT) [thread overview] Message-ID: <20231125213655.9341F3858CDB@sourceware.org> (raw) https://gcc.gnu.org/g:8d559a9b85d9a6de4f358171178a74605f554082 commit r14-5845-g8d559a9b85d9a6de4f358171178a74605f554082 Author: Andrew Pinski <quic_apinski@quicinc.com> Date: Tue Nov 21 18:25:24 2023 -0800 Fix gcc.target/aarch64/movk.c testcase after IPA-VRP improvement for return values The problem here is dummy_number_generator returns a constant which IPA VRP is now able propagate that so we need to mark the funciton as noipa to stop that. gcc/testsuite/ChangeLog: PR testsuite/112688 * gcc.target/aarch64/movk.c: Add noipa on dummy_number_generator and remove -fno-inline option. Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com> Diff: --- gcc/testsuite/gcc.target/aarch64/movk.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/aarch64/movk.c b/gcc/testsuite/gcc.target/aarch64/movk.c index e6e4e3a8961..1fa11540c6c 100644 --- a/gcc/testsuite/gcc.target/aarch64/movk.c +++ b/gcc/testsuite/gcc.target/aarch64/movk.c @@ -1,8 +1,11 @@ /* { dg-do run } */ -/* { dg-options "-O2 --save-temps -fno-inline" } */ +/* { dg-options "-O2 --save-temps" } */ extern void abort (void); +/* Note GCC can optimize this to -346565474575675 even without inlining so + mark it for noipa. */ +[[gnu::noipa]] long long int dummy_number_generator () {
reply other threads:[~2023-11-25 21:36 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=20231125213655.9341F3858CDB@sourceware.org \ --to=pinskia@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).