Use the proper operand in div,rem tests