On Mar 16, 2011, at 12:05 PM, Andrew Pinski wrote: >> + (set_attr "length" "5")] ;; Worst case sceanario. FIXME: If we defined >> separate patterns >> +) ;; rather than using iterators we could >> specify exact sizes. > > You can set up the correct length even without using separate patterns.
and you can also run match_operand in these things as well... :-) [(set (attr "type") (if_then_else (match_operand 2 "const_int_operand" "") (const_string "alu_shift") (const_string "alu_shift_reg")))]