This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/65317] [SH] Shifts used instead of and with const_int
- From: "olegendo at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 02 May 2016 08:43:41 +0000
- Subject: [Bug target/65317] [SH] Shifts used instead of and with const_int
- Auto-submitted: auto-generated
- References: <bug-65317-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65317
Oleg Endo <olegendo at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |segher at kernel dot crashing.org
--- Comment #3 from Oleg Endo <olegendo at gcc dot gnu.org> ---
Segher, do you think it would make sense to extend combine so that for things
like ...
Failed to match this instruction:
(set (reg:SI 168 [ D.1470 ])
(and:SI (reg:SI 4 r4 [ a ])
(const_int -2147483648 [0xffffffff80000000])))
... it would also try
(set (reg:SI 200) (const_int -2147483648))
(set (reg:SI 168) (and:SI (reg:SI r4) (reg:SI 200)))
I think in some cases it already does try things like that, but for some reason
not in this case here.