else if not SVRMmode.sz:
# inverted CTR test skip mode
if ¬BO[2] & CTRtest & ¬CTI then
- CTR = CTR - 1
+ CTR = CTR - 1
continue
else
testbit = SVRMmode.SNZ
break
if SVCRf.scalar:
break
+# loop finally done, now test if branch (and update LR)
+lr_ok <- SVRMmode.LRu
+if cond_ok then
+ if AA then NIA <-iea EXTS(BD || 0b00)
+ else NIA <-iea CIA + EXTS(BD || 0b00)
+ lr_ok <- 0b1
+if LK & lr_ok then LR <-iea CIA + 4
+
```
Pseudocode for Vertical-First Mode: