1. A computer implemented method for executing an operate-and-insert instruction, the operate-and-insert instruction comprising an opcode field and specifying a first operand and a target register of a set of general registers, the target register storing a target register value, the first operand being in any one of main storage or a first register of the set of general registers, the method comprising: obtaining, by the processor, the first operand; performing an operation on the first operand, the operation specified by the opcode field to produce a result; determining, by the processor, a condition indicative of the produced result; and storing, by the processor, the condition as a portion of the target register value in the target register of the set of general registers, the portion specified by the operate-and-insert instruction.