1. A method for performing a logical operation on a computer processor comprising: reading data from each of two or more source operands; combining the data read from the source operands to generate an index value, the index value identifying a subset of bits within an immediate value associated with an instruction; reading the subset of bits from the immediate value identified by the index value; and storing the bits read from the immediate value within a destination register to generate a result of the instruction.