In one embodiment, a method may include generating a test code segment
including a number of selected opcodes and executing the test code
segment from a particular location within the memory for a first
iteration. The method may also include saving a first test result of the
execution of the test code segment after the first iteration. In
addition, the method may include executing the test code segment for
subsequent iterations and after each iteration of the test code segment,
shifting the test code segment a predetermined number of locations from
the particular location within the memory. The method may further include
comparing test results of each subsequent iteration with the first test
result and determining whether any of the subsequent test results are
different than the first test result.