Hello,<br><br>I'm trying to write an backend for some VM,<br>and started from copying Mips backend.<br><br>That VM has no i8 register as MIPS.<br><br>When I use truncate operation, it's converted to store/load(sext) during dag-combining,<br>
not legalization. and also, I found that the dag-combining is different for each architecture.<br><br>Q1. where is the correct place in the source code that the truncate operation is gone during the dag combining pass.<br>
Q2. Why that the dag-combinig is different for each architecture.<br>Q3. I don't want to use that kind of store/load techiniq to mimic truncation, but just replace to some instruction such as 'CONVERT_i32_to_i8'. What is good way to do?<br>
<br>Thanks,<br>Jiin<br>