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


Reply via email to