Skip to content
Snippets Groups Projects
Commit a6abe77e authored by Pavel Pisa's avatar Pavel Pisa
Browse files

eminaries/qtrvsim/branchpred-1: add for loops alternative to the code


Signed-off-by: default avatarPavel Pisa <pisa@cmp.felk.cvut.cz>
parent acb7b0a7
Branches master
No related tags found
No related merge requests found
.globl _start
# i = s0, j = s1, c = s2, t0 = outer loop limits, t1 = inner loop limit, t3 - auxiliary variable
# c = 0; for ( i = 0; i < 4; i++) for ( j = 0; i < 5; j++) c++;
# c, i, j = 0; do { do { c++ } while(++j < 5) } while(i < 4);
_start:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment