r9 is a volatile register in the iOS ABI and will therefore not be
preserved by compiled functions like the luma motion compensation.
Add the symbol prefix to the puts() call and use blx since a switch
between arm and thumb mode might be required.
-.macro check_reg reg1, reg2
+.macro check_reg reg1, reg2=
ldrd r0, r1, [r12], #8
eor r0, r0, \reg1
ldrd r0, r1, [r12], #8
eor r0, r0, \reg1
+.ifnb \reg2
+ eor r1, r1, \reg2
.endm
check_reg r4, r5
check_reg r6, r7
.endm
check_reg r4, r5
check_reg r6, r7
+@ r9 is a volatile register in the ios ABI
+#if SYS_MACOSX
+ check_reg r8
+#else
check_reg r10, r11
.purgem check_reg
check_reg r10, r11
.purgem check_reg
mov r12, #0
str r12, [r2]
movrel r0, error_message
mov r12, #0
str r12, [r2]
movrel r0, error_message
0:
pop {r0, r1}
.ifc \variant, neon
0:
pop {r0, r1}
.ifc \variant, neon