Static Prediction
Branch Displacement Based (Alpha 21064, PowerPC 601/603)
- If D < 0 ; taken
- Why? Backwards branch most often a loop closing branch which is taken first N-1 times out of N times
- If D >= 0; not taken
Opcode Based (MC 88110, PowerPC 601/603) Table 8.6
- Certain opcodes are treated as taken, others as not taken
Compiler Directed - use a bit in the opcodes to reverse the normal prediction for that opcode.