Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有一组特定的 MIPS 操作会导致气泡或无操作?还是仅取决于后续调用需要哪些寄存器?在分支预测方法之外,一个分支是否总是导致两个 noOps?
LW R2 0(R1) Label1: BEQ R2 R0 Label2 #not taken once then taken LW R3 0(R2) BEQ R3 R0 Label1 #taken ADD R1 R3 R1 Label2 AS R1 0(R2)
据此, NOP (无操作):
sll $0,$0,0
我也相信每条以 $0 作为目标寄存器的指令都是 NOOP。