shithub: dav1d

Download patch

ref: 95cd440a99f9e3a25dffc3a318118030a69354d2
parent: f1b756ef5bdc0bb759b2b140f15362fec024c1ff
author: Janne Grunau <[email protected]>
date: Sat Feb 2 09:17:12 EST 2019

arm: fix movrel macro for thumb

--- a/src/arm/32/util.S
+++ b/src/arm/32/util.S
@@ -37,8 +37,7 @@
     ldr         \rd,  1f
     b           2f
 1:
-@ FIXME: thumb
-    .word       3f - (2f + 8)
+    .word       3f - (2f + 8 - 4 * CONFIG_THUMB)
 2:
     ldr         \rd,  [pc, \rd]
 .if \offset < 0
@@ -55,8 +54,7 @@
     ldr         \rd,  1f
     b           2f
 1:
-@ FIXME: thumb
-    .word       \val + \offset - (2f + 8)
+    .word       \val + \offset - (2f + 8 - 4 * CONFIG_THUMB)
 2:
     add         \rd,  \rd,  pc
 #else