This patch series would like to add the testcases for this. However, some test results is not that tidy, and we need more tuning for the vector cost model.
The test adjustments LGTM but what do you mean by not tidy? I see you're scanning just for the presence of "vx" instead of an exact number so
it's just a vector cost model issue and some loops are not profitable to vectorize? -- Regards Robin