This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/25662] [4.0/4.1 Regression] Unrecognizable insn with -O on PPC
- From: "ian at airs dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jan 2006 19:05:54 -0000
- Subject: [Bug target/25662] [4.0/4.1 Regression] Unrecognizable insn with -O on PPC
- References: <bug-25662-10332@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from ian at airs dot com 2006-01-06 19:05 -------
I think this is a bug in simplify_expand_binop (adding Richard Sandiford to the
CC since he introduced that function). Currently when simplify_expand_binop is
given two constants, it calls simplify_gen_binary. When the operation does not
simplify, that will wind up returning RTL which may not satisfy the instruction
predicates.
I think it should call simplify_binary_operation instead. If that fails, it
should call expand_binop as usual.
I will attach a sample, untested, patch.
--
ian at airs dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |richard at codesourcery dot
| |com, ian at airs dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25662