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