Question: Loop: addi X 9 , X 9 , 1 , ? ? increment loop index: k = k + 1 sub X 1 4 ,

Loop:
addi X9, X9,1,?? increment loop index: k=k+1
sub X14, X13, X9// test loop index: if limit > k then X14!=0
addi X10, X10,4// compute loop body: x=x+4
sub X11, X10, X9// compute loop body: y=x-k
CBNZ X14 Loop // loop-body is done; goto loopback point
Exit:
For a loop like this, which type of branch predictor would be more accurate?
[ Select ]
[ Select ]
not taken
contains 20. What is the accuracy of this predictor?
taken
Loop:
addi X9,X9,1
sub x14,X13,X9 increment loop index: k=k+1
addi X10,X10,4
??test loop index: iflimit>k then X140
sub X11,X10,X9
CBNZX14 Looppute loop body: x=x+4
Exit:
For a loop like this, which type of branch predictor would be more accurate?
[ Select]
Assume X 9 starts at 0 and X 13 contains 20. What is the accuracy of this predictor?
Loop: addi X 9 , X 9 , 1 , ? ? increment loop

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!