As RKSimon suggested in pr35820, in the case that Src is smaller in
bit-size than Indices, need to widen Src to avoid type mismatch.
Fixes pr35820
Differential D41865
X86: Fix LowerBUILD_VECTORAsVariablePermute for case Src is smaller than Indices zvi on Jan 9 2018, 7:53 AM. Authored by
Details
As RKSimon suggested in pr35820, in the case that Src is smaller in Fixes pr35820
Diff Detail
Event TimelineComment Actions Please can you add a similar test for a bigger source vector, something like: <4 x i32> @foo(<8 x i32> %v, <2 x i32> %indices) ? Comment Actions Sure, but looking at your example the return type should have the same number of elements as the indices vector, right? Comment Actions Will need to think about how/if it can be done. AVX512 masking could make it easier.
|
I don't think you should use IndicesVT - (what happens with <8 x float> @pr35820_alt(<4 x float> %v, <8 x i32> %indices) ?