Use mkgep helper function
changes to getOperand, better portability for pointer arithmetic operations