two stw instead of stx and a incorrect branchtemplate
.fill 1, 0xe7c1fffc;stw r8, 0-4(r3)
prog_consts:
-.fill 1, 0xed400004;ldis r6, CONST
+.fill 1, 0xed300004;ldis r6, CONST
.fill 1, 0xe7b18000;stw r6, 0(r3)
.fill 1, 0xe1198020;addi r3, r3, 4
;shift to the position of imm in br
lls r11, r11, 7
or r6, r7, r11
- stw r6, 0(r8)
+ stx r6, 0(r8)
addi r10, r10, 8
cmp r10, r9
;load template br
ldw r0, 16(r4)
or r0, r0, r8
- stw r0, 16(r2)
+ stx r0, 16(r2)
;increment address
addi r2, r2, 20