On 04/04/2011 06:04 PM, Henderson, Stuart wrote: > Yep, I'm seeing this behaviour (getting the error using your patch). > But I'm confused as to why the define_expand is being considered when > the predicate doesn't match.
It's just a bug in expand. Your original patch (plus using const_int_operand as suggested by rth) is OK for all branches where the problem occurs. I found yesterday that this is PR39768, so make sure to mention that in the ChangeLog. Bernd