摘要 |
A test method includes reading out, by a processor, a branch instruction from a storage unit that stores instructions, referring to a branch destination address of the branch instruction in a branch history unit that stores a branch history which links an address of the branch instruction and a branch destination address, reading out first random number data unconstrained by test protocols as the succeeding instruction of the branch instruction from the storage unit when the branch history of the branch instruction is not in the branch history unit, calculating the branch destination address of the branch instruction and executing the first random number data, and invalidating the result of execution of the first random number data when the calculated branch destination address and the address of the random number data differ.
|