<div>Thanks to Anton.</div>
<div> </div>
<div>Frankly said i don't know the exact meaning and purpose of 'isCommutable'. By my opinion "add.w r6, r7" != "add.w r7, r6", so we shouldn't set isCommutable = 1.</div>
<div> </div>
<div>Who would like give an example to demonstrate what benifit it has if 'isCommuatble=1' in instruction selection, register allocation or other process? </div>
<div> </div>
<div>Regards</div>
<div> </div><br><br>
<div><span class="gmail_quote">2009/12/7, Anton Korobeynikov <<a href="mailto:anton@korobeynikov.info">anton@korobeynikov.info</a>>:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hello<br><br>> ***  Another question: Why set isCommutable = 1 in ADD16rr but NOT set in<br>> ADD16ri?<br>
Because all msp430 instructions are two-address, this means that<br>output register is tied to first input. That's why you cannot swap<br>operands for reg-imm operations.<br><br>--<br>With best regards, Anton Korobeynikov<br>
Faculty of Mathematics and Mechanics, Saint Petersburg State University<br></blockquote></div><br>