support immediate value in evaluating compare instructions