Tests we properly optimize intrinsics during constant folding