Hi Nadav, > getZeroExtendInReg needs to get a scalar type indeed. There are several uses of getZeroExtendInReg in LegalizeIntegerTypes.cpp - did you audit them to see if they need the same change? Also, please add a testcase. Ciao, Duncan.