2008/2/15, Andreas Fredriksson <<a href="mailto:deplinenoise@gmail.com">deplinenoise@gmail.com</a>>:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I tried mocking this up using the following. (Base is what's returned as the Ax in the move expression above when the DAG is constructed due to SelectAddr().)<br><br> SDOperand chain = CurDAG->getCopyToReg(Base, M68K::A3, Base);<br>
Base = CurDAG->getCopyFromReg(chain, M68K::A3, MVT::i32);<br></blockquote></div><br>Replying to myself here.<br><br>This worked a bit better :)<br><br> const unsigned addressReg = RegMap->createVirtualRegister(&M68K::AR32RegClass);<br>
SDOperand chain = CurDAG->getCopyToReg(Base, addressReg, Base);<br> Base = CurDAG->getCopyFromReg(chain, addressReg, MVT::i32);<br><br><br>// Andreas<br>