Re: Unable to match instruction pattern

2014-04-14 Thread Paul Shortis
Thanks Richard, That worked just as you suggested, and ... when I removed my zero_extendhisi2 the IIRC the target-independent optabs code generated exactly the same sequence. Interestingly, I noticed that changing from my define_insn "zero_extendhisi2" back to the define_expand "zero_extendh

Re: Unable to match instruction pattern

2014-04-11 Thread Richard Sandiford
pshor...@dataworx.com.au writes: > Found it ... > > I had > > (define_expand "zero_extendhisi2" > [ > (set (subreg:HI (match_operand:SI 0 "general_operand" "")0) > (match_operand:HI 1 "general_operand" "")) > (set (subreg:HI (match_dup 0)2) >

Re: Unable to match instruction pattern

2014-04-09 Thread pshortis
Found it ... I had (define_expand "zero_extendhisi2" [ (set (subreg:HI (match_operand:SI 0 "general_operand" "")0) (match_operand:HI 1 "general_operand" "")) (set (subreg:HI (match_dup 0)2) (const_int 0)) ] "" "" ) which cr