<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/138333>138333</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Missed optimization: Rotation can be changed from left to right
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
AZero13
</td>
</tr>
</table>
<pre>
Yes I know this has two cases of subpar optimization: One where the funnel shift is 64-bit based, and the other is left funnel shifts that can be converted to a right funnel shift. This one is about the latter. However, this was lifted from one of gcc's test suites.
https://godbolt.org/z/Yd63ed3sv
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxkkb2O1DAQx5_GaUYXJXaSvRQuFlAEBUJCNEdnx5PY4LVXnsmuuKdHCQfooEok_z9m5meIwpoQtejfiP5dZTb2uejzVyy5VZXN7od-QoIP8D3lO7APBN4Q8D3DbAgJ8gK02aspkK8cLuHZcMhJqDN8Sgh3jwWBPcKypYQRyIeFIRAM3YMNDNYQOiHfgknu0GX2WHZBxIVfuQjYG4bZJLAIc043LIwOOIOBElb_Wl7Dl33anHBPMzZvfBREw4ylhvf5jjcse_ex1t0QxLDsiUvJl8OYF1jnWcgTASMx0BYYqQbRnEVz9sxXEuos5CTktGZnc-Q6l1XI6VnI6ckNCp2iW-W0cqMaTYW6PXWDbIfHU195fRrboVHGurEfF9n189iqYVCuw8exG9FWQctG9k3fSNm0nepriWM_L904S6OasV1E1-DFhFjHeLvs3VUg2lC36lEpVUVjMdJBV8qEdzhehZQ77KJ304PdVhJdEwMx_Y3hwBH1x0CE7j-0nzMf_39geJPW34c7wHH-haTaStT_HCqw32w954uQ09738nm4lvwNZxZyOqYkIaeXNW5a_gwAAP__8znisA">