Re: Definition of an instruction

2010-03-05 Thread Jean Christophe Beyler
Yes, I should have thought about it too. The error message threw me a bit off, thanks for clearing that. Thanks for that ! Final question about this all: I have a cost adjustment to make if the register operand 0 is used later on. Basically, if that one is used, I have a +6 cost otherwise if it's

Re: Definition of an instruction

2010-03-04 Thread Andrew Pinski
On Thu, Mar 4, 2010 at 3:38 PM, Jean Christophe Beyler wrote: > Yeah that's what I had tried first but I get : > > genextract: Internal error: abort in VEC_safe_set_locstr > > And I can't seem to get rid of that error. > > Any idea why this happens? Oh because the second time for the match_operan

Re: Definition of an instruction

2010-03-04 Thread Jean Christophe Beyler
Yeah that's what I had tried first but I get : genextract: Internal error: abort in VEC_safe_set_locstr And I can't seem to get rid of that error. Any idea why this happens? Jc On Thu, Mar 4, 2010 at 6:28 PM, Andrew Pinski wrote: > Maybe try this: > > (define_insn "myInst" >  [ >  (set (match_

Re: Definition of an instruction

2010-03-04 Thread Andrew Pinski
Maybe try this: (define_insn "myInst" [ (set (match_operand:DI 0 "register_operand" "=r") (unspec:DI [(match_operand:DI 1 "register_operand" "r") (match_operand:DI 2 "register_operand" "r") (reg:DI 66)] 5)) (set (reg:DI 66) (unspec:DI [(match_operand:DI 1 "register_operand" "r") (match_o