This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/25662] [4.0/4.1 Regression] Unrecognizable insn with -O on PPC



------- 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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]