The following instruction execution frequencies were measure
The following instruction execution frequencies were measured for five benchmark programs – compress, eqntott, espresso, gcc, and li – as they ran.
Shift left and shift right
Load immediate
Conditional branch
Other register-register (xor, not, etc.)
Fill in the following table to assign each instruction in the table above to its category in the following table.
ALU register-register
Memory access
Conditional branch
| Load | 26% | Compare | 14% | Shift left and shift right | 4% |
| Store | 9% | Load immediate | 4% | And | 3% |
| Add | 14% | Conditional branch | 17% | Or | 5% |
| Sub | 0% | Jump | 1% | Other register-register (xor, not, etc.) | 1% |
| Multuply | 0% | Call | 1% | ||
| Divide | 0% | Return | 1% |
Solution
ALU register-register
Memory access
Conditional branch
| ALU register-register | add, sub, multiply, divide, shift left and shift right, AND, OR, Other register-register (xor, not, etc.) |
| Memory access | load, store, load immediate |
| Conditional branch | conditional branch, |
| Jump | call, return, jump |
