<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>On Jun 12, 2007, at 4:55 AM, Peltier, Mikael wrote:<SPAN style=""><FONT class="Apple-style-span" face="Arial" size="4"><SPAN class="Apple-style-span" style="font-size: 13.3333px;"></SPAN></FONT></SPAN></DIV><DIV><SPAN style=""><FONT class="Apple-style-span" face="Arial" size="4"><SPAN class="Apple-style-span" style="font-size: 13.3333px;">I use LLVM 2.0 with the following command lines:</SPAN></FONT></SPAN></DIV><BLOCKQUOTE type="cite"><DIV class="Section1"><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial">llvm-as -f –o test.bc test.ll</SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial">llc –march=arm –mcpu=arm1136j-s –mattr=+v6 –f –o test.s test.bc</SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial">arm-linux-gnu-as –mcpu=arm1136j-s  test.s</SPAN></FONT></P><DIV><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial"> <SPAN style="">With the last command, I obtain the following error:</SPAN></SPAN></FONT></DIV><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial">rd and rm should be different in mul</SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial">The bad instruction is “mul r3, r3, r2” that follows the syntax “mul rd, rm, rs”.<SPAN style=""> </SPAN></SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial">I want to know where is my mistake or if it is a bug in register allocator ?</SPAN></FONT></P></DIV></BLOCKQUOTE></DIV><DIV>This instruction is valid on 1136j-s and other ARMv6 implementations.</DIV><DIV>Since you have told the assembler that's what you have, it should</DIV><DIV>not warn; this is an assembler bug.  It is safe to ignore the message.</DIV><DIV><DIV><BR class="khtml-block-placeholder"></DIV></DIV></BODY></HTML>