Add a argument to storeRegToStackSlot and storeRegToAddr to specify whether