<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/142973>142973</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[RISCV] Incorrect cost for fptosi_sat.v8i16.v8f64 with Zve32f
</td>
</tr>
<tr>
<th>Labels</th>
<td>
backend:RISC-V
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
topperc
</td>
</tr>
</table>
<pre>
v8i16 is legal with Zve32f, but v8f64 needs to be scalarized. The cost model only checks the destination type not the input type so does not report the scalarization cost.
CC @arsenm @lukel97 @wangpc-pp @preames
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxMkU-PmzAQxT-NuYyCjPkXDhzSrCLtta320EtlmwHcNdjyDFmln76CbNWePPb4zdObnyZy04rYi_qLqF8yvfEcUs8hRkw2M2F49PezKxpwBB4n7eHD8Qw_7liqUagrmI3hfh6bClbEgYADGASy2uvkfuOQw_cZwQZiWMKAHsLqH2BntO8EPCMMSOxWzS6swI-IsAY-Gm6NGz-fKMAQkI5WwhjS88dfl6d498iFvAh5uV5BVFInwnXZK7-9o-_avfzQ6xTtKcb9EhPqBQmyoS-Hrux0hn3RVl1RqkY22dwrLNtylNjgcB41qhaNatrW1LqTRaF15nolVS0bWRdVIWWZN2NxlmisObdN2dRGVBIX7Xzu_X3JQ5oyR7RhX1Sqa8vMa4OejvUrZbR9x3UQ5eXr67fr6U0otUNJ_a49mW2iPYsjpn_T2LE_8O2SN1G_wOtqQ0po-bn1MSQYIwdyP0lzftDMn8T-Q5ltyfczcyRRXoS6CXWbHM-byW1YhLrtfp_HKabwCy0LdTuikFC3zzT3Xv0JAAD__yCawU4">