Jennifer Schmitz <jschm...@nvidia.com> writes: >> Does: >> >> svmul_n_u32_x (pg, svindex_u32 (4, 1), 2); >> >> get optimised to a single INDEX of #8, #2? It would be good to test >> things like that if so. >> >> Looks good to me otherwise. >> >> Thanks, >> Richard > I tested this test case, but - unlike svdup - svindex is currently not folded > in gimple and the test case still compiles to using index and multiplication > instructions. Implementing the gimple_folder for svindex could be a follow-up > patch. In the meantime, I added a svdupq test as for svdiv. > Best, Jennifer
Bah, I should have checked. But yeah, folding constant svindex operations would be a nice thing to add. The patch is OK for trunk, thanks. Richard