A method and apparatus for including in a computer system, instructions for performing
cache memory invalidate and cache memory flush operations. In one embodiment, the
computer system comprises a cache memory having a plurality of cache lines each
of which stores data, and a storage area to store a data operand. An execution
unit is coupled to the storage area, and operates on data elements in the data
operand to invalidate data in a predetermined portion of the plurality of cache
lines in response to receiving a single instruction.