> <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">That being said 8-bit constant pool entries should be supported in some fashion, not cause a crash. I just think it shouldn't get emitted :-)</span><div>
<font color="#222222" face="arial, sans-serif"><br></font></div><div><font color="#222222" face="arial, sans-serif">The architecture in the test case provided was armv4t, which does not have MOVW/MOVT.</font></div><div><font color="#222222" face="arial, sans-serif"><br>
</font></div><div><font color="#222222" face="arial, sans-serif">Also, neither does v6m/v7m, so we do need to support LDRB.</font></div><div><font color="#222222" face="arial, sans-serif"><br></font></div><div><font color="#222222" face="arial, sans-serif">Cheers,</font></div>
<div><font color="#222222" face="arial, sans-serif"><br></font></div><div><font color="#222222" face="arial, sans-serif">James<br></font><br><div class="gmail_quote">On 5 June 2013 05:05, JF Bastien <span dir="ltr"><<a href="mailto:jfb@google.com" target="_blank">jfb@google.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><p dir="ltr">> Presumably for the same reason why we use ldr for 'ptrtoint (i32* @a to i32)' instead of movw/movt. Why do you ask? Do you think using ldrb is incorrect?</p>

</div><p dir="ltr">I do think that it is incorrect unless the critical path is extremely integer execution unit bound, and the memory side is completely free. I think that it's better to always use immediate mov for 8-bit values.</p>


<p dir="ltr">Things are different for 16, 32 and 64 bit constants, it varies quite a bit depending in which processor is measured and on which workload. </p>
<p dir="ltr">That being said 8-bit constant pool entries should be supported in some fashion, not cause a crash. I just think it shouldn't get emitted :-)<br>
</p>
<br>_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
<br></blockquote></div><br></div>