public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "luoxhu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/90323] powerpc should convert equivalent sequences to vec_sel()
Date: Fri, 30 Apr 2021 02:20:57 +0000 [thread overview]
Message-ID: <bug-90323-4-187lPoyAjW@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-90323-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90323
--- Comment #16 from luoxhu at gcc dot gnu.org ---
> +2016-11-09 Segher Boessenkool <segher@kernel.crashing.org>
> +
> + * simplify-rtx.c (simplify_binary_operation_1): Simplify
> + (xor (and (xor A B) C) B) to (ior (and A C) (and B ~C)) and
> + (xor (and (xor A B) C) A) to (ior (and A ~C) (and B C)) if C
> + is a const_int.
Is it a MUST that C be const here? For this case in PR90323, C is not a const
actually.
l = l & ~mask;
l |= mask & r;
Trying 8, 9 -> 10:
8: r127:V4SI=r124:V4SI^r131:V4SI
REG_DEAD r131:V4SI
9: r122:V4SI=r127:V4SI&r130:V4SI
REG_DEAD r130:V4SI
REG_DEAD r127:V4SI
10: r128:V4SI=r124:V4SI^r122:V4SI
REG_DEAD r124:V4SI
REG_DEAD r122:V4SI
next prev parent reply other threads:[~2021-04-30 2:20 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <bug-90323-4@http.gcc.gnu.org/bugzilla/>
2021-04-08 5:25 ` luoxhu at gcc dot gnu.org
2021-04-08 5:29 ` luoxhu at gcc dot gnu.org
2021-04-08 20:49 ` segher at gcc dot gnu.org
2021-04-09 3:47 ` luoxhu at gcc dot gnu.org
2021-04-09 7:29 ` luoxhu at gcc dot gnu.org
2021-04-12 22:32 ` segher at gcc dot gnu.org
2021-04-12 22:36 ` segher at gcc dot gnu.org
2021-04-13 3:22 ` luoxhu at gcc dot gnu.org
2021-04-30 2:20 ` luoxhu at gcc dot gnu.org [this message]
2021-04-30 6:36 ` luoxhu at gcc dot gnu.org
2021-12-22 10:49 ` pinskia at gcc dot gnu.org
2021-12-22 11:27 ` segher at gcc dot gnu.org
2021-12-22 11:39 ` segher at gcc dot gnu.org
2023-09-04 3:28 ` pinskia at gcc dot gnu.org
2024-05-15 9:05 ` pinskia at gcc dot gnu.org
2024-05-15 11:13 ` segher at gcc dot gnu.org
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=bug-90323-4-187lPoyAjW@http.gcc.gnu.org/bugzilla/ \
--to=gcc-bugzilla@gcc.gnu.org \
--cc=gcc-bugs@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: link
Be 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).