1. A system comprising: a cache comprising a plurality of cache lines; an identifier including an identifier value to identify a cache line of the plurality of cache lines for replacement; a selector to receive an index value included in a cache invalidate by index instruction, an encoded way value outputted by an encoder, and an incrementer output value outputted by an incrementer; and control logic configured to assign the identifier value from the selector, wherein the control logic assigns the index value to the identifier value in response to receiving the cache invalidate by index instruction.