RKSimon added a comment. Why not handle this generically - accept AVG patterns of any type pre-legalization and expand back during legalization if necessary? CHANGES SINCE LAST ACTION https://reviews.llvm.org/D119075/new/ https://reviews.llvm.org/D119075