<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>
<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>